4d49 / object-inspector

In-game properties inspector for Godot 4.3
MIT License
22 stars 5 forks source link

Category, group and subgroup support #4

Closed NullMember closed 5 months ago

NullMember commented 5 months ago

Basic category, group and subgroup support. Group and subgroup automatically hides nodes under them.

4d49 commented 5 months ago

I found the problem. If you collapse/expand a group, subgroups will be expanded, but the button state will not be pressed and will need to be pressed twice.

NullMember commented 5 months ago

Last commit should fix the issue

4d49 commented 5 months ago

The test_1 property is always hidden in the inspector .

@export_category("Сategory")

@export_group("The property is always hidden")
@export var test_1: bool = true

@export_subgroup("In a subgroup, everything works")
@export var test_2: bool = true
4d49 commented 5 months ago

A radical solution to the problem would be to add properties as child nodes to categories/groups. But then there is the problem of finding properties.