Hi everyone, I implemented my custom Unity editor class with a foldout which shows its child variables when clicked. However, in the inspector, it only unfolds when I click on the little triangle:
Usually, in Unity’s built-in foldouts (for example: Public array variables), clicking on the name automaticallt unfolds it.
Is there any way to get that effect in a custom Unity Editor Script?
Here’s my code so far:
isUnfolded = EditorGUILayout.Foldout (isUnfolded , "My Folder");
if (isUnfolded)
//My variables...