Ejemplo n.º 1
0
        void OnEnable()
        {
            var config = new VisualDebuggingConfig();

            config.Configure(Preferences.LoadProperties());
            _systemWarningThreshold = config.systemWarningThreshold;
        }
Ejemplo n.º 2
0
 static EntitasHierarchyIcon()
 {
     if (Preferences.HasProperties())
     {
         var config = new VisualDebuggingConfig();
         config.Configure(Preferences.LoadProperties());
         _systemWarningThreshold = config.systemWarningThreshold;
         EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI;
     }
 }
        public override void Initialize(Properties properties)
        {
            _visualDebuggingConfig = new VisualDebuggingConfig();
            properties.AddProperties(_visualDebuggingConfig.DefaultProperties, false);
            _visualDebuggingConfig.Configure(properties);

            _scriptingDefineSymbols = new ScriptingDefineSymbols();
            _enableVisualDebugging  = !_scriptingDefineSymbols.BuildTargetToDefSymbol.Values
                                      .All <string>(defs => defs.Contains(ENTITAS_DISABLE_VISUAL_DEBUGGING));
        }
Ejemplo n.º 4
0
        static void generateITypeDrawer(string typeName)
        {
            var config = new VisualDebuggingConfig();

            config.Configure(Preferences.LoadProperties());
            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);
        }
Ejemplo n.º 5
0
        static void generateIDefaultInstanceCreator(string typeName)
        {
            var config = new VisualDebuggingConfig();

            config.Configure(Preferences.LoadProperties());
            var folder   = config.defaultInstanceCreatorFolderPath;
            var filePath = folder + Path.DirectorySeparatorChar + "Default" + typeName.ShortTypeName() + "InstanceCreator.cs";
            var template = DEFAULT_INSTANCE_CREATOR_TEMPLATE_FORMAT
                           .Replace("${Type}", typeName)
                           .Replace("${ShortType}", typeName.ShortTypeName());

            generateTemplate(folder, filePath, template);
        }