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)); }
static EntitasHierarchyIcon() { EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI; var config = new VisualDebuggingConfig(Preferences.LoadConfig()); _systemWarningThreshold = int.Parse(config.systemWarningThreshold); }
void OnEnable() { var preferences = Preferences.sharedInstance; var config = new VisualDebuggingConfig(); config.Configure(preferences); _systemWarningThreshold = config.systemWarningThreshold; }
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)); }
static EntitasHierarchyIcon() { if (Preferences.HasProperties()) { var config = new VisualDebuggingConfig(); config.Configure(Preferences.LoadProperties()); _systemWarningThreshold = config.systemWarningThreshold; EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI; } }
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); }
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); }
static EntitasHierarchyIcon() { var preferences = Preferences.sharedInstance; if (preferences.propertiesExist) { var config = new VisualDebuggingConfig(); config.Configure(preferences); _systemWarningThreshold = config.systemWarningThreshold; EditorApplication.hierarchyWindowItemOnGUI += onHierarchyWindowItemOnGUI; } }
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); }