Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

EditorGUILayout: Controlling SetActive on SerializedObjects from Inspector

$
0
0
Hi

On my game control script, I have a group of game objects in the scene that I'd like to be able to switch on and off via my inspector script using EditorGUILayout. I have used serializedObject.FindProperty on my Editor script to grab the reference for the objects in the Control Script. But unless I'm running the game, these won't show up. I need them to display when not in play mode, so that I can then set up my editor script to allow me to turn the object on or off (active).

Problem also...

EditorGUILayout: Controlling SetActive on SerializedObjects from Inspector

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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