New answers tagged

0

Events are the sames that in Game editor, you only need to add to your class the label to run on Edit mode: [ExecuteInEditMode] public class myclass: MonoBehaviour { void Update() { } }


0

Perhaps this is something you are looking for. This allows you to register mouse events in the scene when a game object with the specified type is selected in the hierarchy. using UnityEngine; using System.Collections; using UnityEditor; [CustomEditor(typeof(SomeScriptType))] public class MyEditorPlayer : Editor { void OnSceneGUI() { int ...



Top 50 recent answers are included