コード例 #1
0
        void OnEnable()
        {
            var config = new VisualDebuggingConfig();

            config.Configure(Preferences.LoadProperties());
            _systemWarningThreshold = config.systemWarningThreshold;
        }
 public override void Initialize(Config config)
 {
     _visualDebuggingConfig  = new VisualDebuggingConfig(config);
     _scriptingDefineSymbols = new ScriptingDefineSymbols();
     _enableVisualDebugging  = !_scriptingDefineSymbols.buildTargetToDefSymbol.Values
                               .All <string>(defs => defs.Contains(ENTITAS_DISABLE_VISUAL_DEBUGGING));
 }
コード例 #3
0
        static EntitasHierarchyIcon()
        {
            EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI;
            var config = new VisualDebuggingConfig(Preferences.LoadConfig());

            _systemWarningThreshold = int.Parse(config.systemWarningThreshold);
        }
コード例 #4
0
        void OnEnable()
        {
            var preferences = Preferences.sharedInstance;
            var config      = new VisualDebuggingConfig();

            config.Configure(preferences);
            _systemWarningThreshold = config.systemWarningThreshold;
        }
コード例 #5
0
        public override void Initialize(Preferences preferences)
        {
            _visualDebuggingConfig = preferences.CreateAndConfigure <VisualDebuggingConfig>();
            preferences.properties.AddProperties(_visualDebuggingConfig.defaultProperties, false);

            _scriptingDefineSymbols = new ScriptingDefineSymbols();
            _enableVisualDebugging  = !_scriptingDefineSymbols.buildTargetToDefSymbol.Values
                                      .All <string>(defs => defs.Contains(ENTITAS_DISABLE_VISUAL_DEBUGGING));
        }
コード例 #6
0
 static EntitasHierarchyIcon()
 {
     if (Preferences.HasProperties())
     {
         var config = new VisualDebuggingConfig();
         config.Configure(Preferences.LoadProperties());
         _systemWarningThreshold = config.systemWarningThreshold;
         EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI;
     }
 }
コード例 #7
0
        static void generateITypeDrawer(string typeName)
        {
            var config   = new VisualDebuggingConfig(Preferences.LoadConfig());
            var folder   = config.typeDrawerFolderPath;
            var filePath = folder + typeName.ShortTypeName() + "TypeDrawer.cs";
            var template = TYPE_DRAWER_TEMPLATE_FORMAT
                           .Replace("${Type}", typeName)
                           .Replace("${ShortType}", typeName.ShortTypeName());

            generateTemplate(folder, filePath, template);
        }
コード例 #8
0
        static void generateIDefaultInstanceCreator(string typeName)
        {
            var config   = new VisualDebuggingConfig(Preferences.LoadConfig());
            var folder   = config.defaultInstanceCreatorFolderPath;
            var filePath = folder + "Default" + typeName.ShortTypeName() + "InstanceCreator.cs";
            var template = DEFAULT_INSTANCE_CREATOR_TEMPLATE_FORMAT
                           .Replace("${Type}", typeName)
                           .Replace("${ShortType}", typeName.ShortTypeName());

            generateTemplate(folder, filePath, template);
        }
コード例 #9
0
        static EntitasHierarchyIcon()
        {
            var preferences = Preferences.sharedInstance;

            if (preferences.propertiesExist)
            {
                var config = new VisualDebuggingConfig();
                config.Configure(preferences);
                _systemWarningThreshold = config.systemWarningThreshold;
                EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI;
            }
        }
コード例 #10
0
        static void generateITypeDrawer(string typeName)
        {
            var preferences = Preferences.sharedInstance;
            var config      = new VisualDebuggingConfig();

            config.Configure(preferences);
            var folder   = config.typeDrawerFolderPath;
            var filePath = folder + Path.DirectorySeparatorChar + typeName.ShortTypeName() + "TypeDrawer.cs";
            var template = TYPE_DRAWER_TEMPLATE_FORMAT
                           .Replace("${Type}", typeName)
                           .Replace("${ShortType}", typeName.ShortTypeName());

            generateTemplate(folder, filePath, template);
        }