Closed ZeroUltra closed 6 months ago
SaintsEditor
only works for UnityEngine.Object
. Use SaintsRow
to apply on a generic serializable target:
using SaintsField.Playa;
using UnityEngine;
namespace SaintsField.Samples.Scripts.IssueAndTesting.Issue
{
public class Issue6 : MonoBehaviour
{
public bool boolValue;
[PlayaShowIf(nameof(boolValue))] public int[] showIf;
[System.Serializable]
public class TestClass
{
public bool boolValue;
[PlayaShowIf(nameof(boolValue))] public int[] showIf;
}
[SaintsRow] public TestClass testClass;
}
}
Special Note:
- After applied this attribute, only pure
PropertyDrawer
, and decorators fromSaintsEditor
works on this target. Which means, Using third party'sPropertyDrawer
is fine, but decorator of Editor Level (e.g. Odin'sButton
, NaughtyAttributes'Button
) will not work.- IMGUI:
ELayout.Horizontal
does not work here- IMGUI:
DOTweenPlay
might be a bit buggy displaying the playing/pause/stop status for each function.
You're my hero.
Is there something wrong with my settings?