How to add resource categories depending on the variables set?

Godot Version 4.3 Beta 1


I have a custom resource class. I would like to have the AnimationSettings subgroup appear when I set the IsAnimated variable in the inspector. Is this possible?

using Godot;

public partial class TileResource : Resource
    public int SourceID { get; set; }

    [Export] public string Name { get; set; }

    [Export] public bool IsAnimated { get; set; }

    [Export] public int TileID { get; set; }

    [Export] public StructureSize Size {  get; set; }

Yes you can make plugins, is easy to start

Implement the Object._get_property_list() or Object._validate_property() functions. The documentation of each one has examples you can use.