Quantcast
Channel: Answers by "Democide"
Viewing all articles
Browse latest Browse all 10

Answer by Martin Sharkbomb

$
0
0
All you need to really do is use the "isExpanded" field on the SerializedProperty: http://docs.unity3d.com/ScriptReference/SerializedProperty-isExpanded.html for example as such: public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { property.isExpanded = EditorGUI.Foldout(currentRect, property.isExpanded, "Sound"); if (property.isExpanded) { ... } }

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>