Open
Description
Describe the bug
When using the ShowInInspector attribute on a reference type, the type sub fields attribute do not work correctly.
Expected behavior
In the code sample below, the int field 'MyInt' is not displayed with a slider as expected.
Code Sample
public class AttributeTester : MonoBehaviour
{
[SerializeReference]
public A a;
[ShowInInspector]
public A PropertyA
{
get => a;
set => a = value;
}
}
[Serializable]
public class A
{
[Range(0, 10)]
public int MyInt;
}
Screenshots
Desktop: Windows 11
Unity version: 6
Tri Inspector version: 1.14.1