About the bug of Show If Group Attribute
using Sirenix.OdinInspector;
using UnityEngine;
public class testOdin : MonoBehaviour
{
public bool Toggle = true;
[ShowIfGroup("Toggle")]
[BoxGroup("Toggle/Shown Box")]
public int A, B;
[BoxGroup("Box")]
public InfoMessageType EnumField = InfoMessageType.Info;
[BoxGroup("Box")]
[ShowIfGroup("Box/Toggle")]
public Vector3 X, Y;
[ShowIfGroup("Box/Toggle/EnumField", Value = InfoMessageType.Info)]
[BoxGroup("Box/Toggle/EnumField/Border", ShowLabel = false)]
public string Name;
[BoxGroup("Box/Toggle/EnumField/Border")]
public Vector3 Vector;
// Add code to the example
[ShowIfGroup("Box/Toggle/EnumField", InfoMessageType.Warning)]
[BoxGroup("Box/Toggle/EnumField/testBorder")]
public int testInt;
[ShowIfGroup("RectGroup", MemberName = "Toggle")]
public Rect Rect;
}
ShowIfGroup for more than two values of Enum, the wrong window will display in inspector of Unity
Comments (2)
-
-
- changed status to closed
- Log in to comment
Hello, thanks for reporting an issue.
We strive to provide the best support experience we can, but reports that lack data, details and reproduction steps are very challenging and time-consuming to investigate and fix. Please, help us help you, by following the guidelines outlined while you are creating an issue report in our issue tracker. This issue has been closed for now, but after you have edited it to follow the submission guidelines, please post again in this issue and we will look at it again.