private static void Open()
    {
        NodeBaseEditor window = GetWindow <NodeBaseEditor>();

        window.autoRepaintOnSceneChange = true;        //シーンが変わるたびに自動で再描画
        window.titleContent             = new GUIContent("のーどえでたー");
    }
Exemple #2
0
        public static bool OpenAssetNodeData(int instanceID, int line)
        {
            //var FiniteStateMachineData = EditorUtility.InstanceIDToObject(instanceID) as FiniteStateMachineData;
            //if (FiniteStateMachineData != null)
            //{
            //    NodeBaseEditor.OpenNode(FiniteStateMachineData);
            //    return true;
            //}

            var FiniteStateMachineDataGraph = EditorUtility.InstanceIDToObject(instanceID) as FiniteStateMachineDataGraph;

            if (FiniteStateMachineDataGraph != null)
            {
                NodeBaseEditor.OpenNode(FiniteStateMachineDataGraph);
                return(true);
            }

            return(false);
        }
    private static void Open()
    {
        NodeBaseEditor window = GetWindow <NodeBaseEditor>();

        window.titleContent = new GUIContent("のーどえでた");
    }