Ejemplo n.º 1
0
        public static bool OpenGraph(int instanceID, int line)
        {
            UnityEngine.Object targetObject = EditorUtility.InstanceIDToObject(instanceID);

            if (!typeof(BehaviourGraph).IsAssignableFrom(targetObject.GetType()))
            {
                return(false);
            }

            BehaviourWindow editor = EditorWindow.GetWindow <BehaviourWindow> ();

            editor.Show();

            editor.OpenGraph((BehaviourGraph)targetObject);

            return(true);
        }
Ejemplo n.º 2
0
        private static void ShowEditor()
        {
            BehaviourWindow editor = EditorWindow.GetWindow <BehaviourWindow> ();

            editor.Show();
        }