public static void CreateRuntimeEditor() { GameObject go = new GameObject(); go.name = "RTHandles"; RuntimeSelectionComponent window = go.AddComponent <RuntimeSelectionComponent>(); window.WindowType = RuntimeWindowType.SceneView; go.AddComponent <RuntimeUndoComponent>(); go.AddComponent <RuntimeToolsComponent>(); Undo.RegisterCreatedObjectUndo(go, "Battlehub.RTHandles.Create"); }
protected virtual void Start() { m_component = GetComponent <RuntimeSelectionComponent>(); }