private void CheckType()
 {
     if (_typeData == null || !_typeData.isValid())
     {
         _typeData = ConnectionTypes.GetTypeData(typeID);
     }
     if (_typeData == null || !_typeData.isValid())
     {
         ConnectionTypes.FetchTypes();
         _typeData = ConnectionTypes.GetTypeData(typeID);
         if (_typeData == null || !_typeData.isValid())
         {
             throw new UnityException("Could not find type " + typeID + "!");
         }
     }
 }
예제 #2
0
        private static void setupBaseFramework()
        {
            ResourceManager.SetDefaultResourcePath(editorPath + "EditorResources/");

            ConnectionTypes.FetchTypes();
            NodeTypes.FetchNodes();
            NodeCanvasManager.GetAllCanvasTypes();

            NodeEditorCallbacks.SetupReceivers();
            NodeEditorCallbacks.IssueOnEditorStartUp();

            NodeEditorInputSystem.SetupInput();

#if UNITY_EDITOR
            UnityEditor.EditorApplication.update -= Update;
            UnityEditor.EditorApplication.update += Update;
#endif

            initiatedBase = true;
        }