You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my code [ConditionalField("NeedRotation")] public RotationCore Rotation;
And NeedRotation is a bool value, but when is it activated,it show me the class, but do not show me values of the same class, and without this conditional i can see the values without problems, my class have a [System.Serializable] on the top
The text was updated successfully, but these errors were encountered:
Oh my, how did I missed that! Sorry for the late response!
I tried to reproduce the issue:
public class Test : MonoBehaviour
{
public bool A;
[ConditionalField(nameof(A))] public TestStruct TTest;
}
[Serializable]
public struct TestStruct
{
public string A;
public int B;
}
it works as intended:
Do you have custom drawer for RotationCore or some other specifics that differ your case from my test?
This is my code
[ConditionalField("NeedRotation")] public RotationCore Rotation;
And NeedRotation is a bool value, but when is it activated,it show me the class, but do not show me values of the same class, and without this conditional i can see the values without problems, my class have a [System.Serializable] on the top
The text was updated successfully, but these errors were encountered: