예제 #1
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Open Editor"))
            {
                InstructionGraphWindow.ShowWindowForGraph(_graph);
            }

            DrawDefaultInspector();
            DrawNodes(_nodesProperty);
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Open Editor"))
            {
                InstructionGraphWindow.ShowWindowForGraph(_graph);
            }

            using (new UndoScope(serializedObject))
            {
                DrawPropertiesExcluding(serializedObject, "m_Script", "_nodes");
                DrawNodes(_nodesProperty);
            }
        }