public ImporterRule() { name = ImporterRulesWindow.GetNewRuleName(); InitSettings(); activeSettings = textureSettings; }
private void UpdateActiveSettings() { if (type == ImporterRulesTypes.texture) { activeSettings = textureSettings; } else if (type == ImporterRulesTypes.model) { activeSettings = modelSettings; } else if (type == ImporterRulesTypes.movie) { activeSettings = movieSettings; } else if (type == ImporterRulesTypes.audio) { activeSettings = audioSettings; } else if (type == ImporterRulesTypes.trueTypeFont) { activeSettings = fontSettings; } }