Exemple #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open edit window"))
     {
         HierarchicalStateMachineBuilderEditorWindow.OpenWindow((HierarchicalStateMachineBuilder)target);
     }
 }
Exemple #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);
        }