コード例 #1
0
        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");
        }
コード例 #2
0
 protected virtual void Start()
 {
     m_component = GetComponent <RuntimeSelectionComponent>();
 }