예제 #1
0
        public static bool OpenGraph(int instanceID, int line)
        {
            UnityEngine.Object targetObject = EditorUtility.InstanceIDToObject(instanceID);

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

            BehaviourWindow editor = GetWindow <BehaviourWindow> ();

            editor.Show();

            editor.OpenGraph((IBehaviourGraph)targetObject);

            return(true);
        }
예제 #2
0
        private static void ShowEditor()
        {
            BehaviourWindow editor = GetWindow <BehaviourWindow> ();

            editor.Show();
        }