Closed mrkvinter closed 6 days ago
Hiding the foldout is an intentional feature for Transition Assets since their transition field is the only thing in their Inspector so it might as well be always expanded, but obviously it shouldn't apply in this case.
To fix it, open TransitionDrawer.cs and change the start of the InitializeMode
method to this:
protected void InitializeMode(SerializedProperty property)
{
if (_Mode == Mode.Uninitialized)
{
if (property.depth > 0)
{
_Mode = Mode.Normal;
return;
}
_Mode = Mode.AlwaysExpanded;
Environment
Description
If we have class with signle nested class/struct with ClipTransitions, we get always expanded property.
Reproduction
Steps to reproduce the bug: For example, we have struct with seviral clip
And put in to MonoBehaviour
Expected:
Fact: (no foldout)