Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open edit window"))
     {
         HierarchicalStateMachineBuilderEditorWindow.OpenWindow((HierarchicalStateMachineBuilder)target);
     }
 }
Esempio n. 2
0
        public static bool OpenEditorWindow(int instanceID, int line)
        {
            HierarchicalStateMachineBuilder builderAsset = EditorUtility.InstanceIDToObject(instanceID) as HierarchicalStateMachineBuilder;

            if (builderAsset != null)
            {
                HierarchicalStateMachineBuilderEditorWindow.OpenWindow(builderAsset);

                return(true);
            }

            return(false);
        }