예제 #1
0
        // protected override void CreateInspector()
        // {
        // }

        protected override void CreateInspector()
        {
            base.CreateInspector();

            root.Add(new Button(() => GameFrameworkGraphWindow.Open().InitializeGraph(target as BaseGraph))
            {
                text = "Open Game Framework graph window"
            });
        }
        public static bool OnBaseGraphOpened(int instanceID, int line)
        {
            var asset = EditorUtility.InstanceIDToObject(instanceID);

            if (asset is GameFrameworkBaseGraph)             // && AssetDatabase.GetAssetPath(asset).Contains("Examples")
            {
                GameFrameworkGraphWindow.Open().InitializeGraph(asset as GameFrameworkBaseGraph);
                return(true);
            }
            return(false);
        }