private void OnEnable() { if (!this.IsEditingPlatformSettingsSupported()) { return; } foreach (IPluginImporterExtension additionalExtension in this.additionalExtensions) { additionalExtension.OnEnable(this); } using (List <BuildTarget> .Enumerator enumerator = PluginImporterInspector.GetValidBuildTargets().GetEnumerator()) { while (enumerator.MoveNext()) { IPluginImporterExtension importerExtension = ModuleManager.GetPluginImporterExtension(enumerator.Current); if (importerExtension != null) { importerExtension.OnEnable(this); importerExtension.ResetValues(this); } } } this.m_PluginInformation = new Dictionary <string, string>(); this.m_PluginInformation["Path"] = this.importer.assetPath; this.m_PluginInformation["Type"] = !this.importer.isNativePlugin ? "Managed" : "Native"; }
public override void OnEnable() { base.OnEnable(); m_DefineConstraints = new ReorderableList(m_DefineConstraintState, typeof(DefineConstraint), false, false, true, true); m_DefineConstraints.drawElementCallback = DrawDefineConstraintListElement; m_DefineConstraints.onRemoveCallback = RemoveDefineConstraintListElement; m_DefineConstraints.elementHeight = EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing; m_DefineConstraints.headerHeight = 3; if (!IsEditingPlatformSettingsSupported()) { return; } foreach (var extension in additionalExtensions) { extension.OnEnable(this); } foreach (BuildTarget platform in GetValidBuildTargets()) { IPluginImporterExtension extension = ModuleManager.GetPluginImporterExtension(platform); if (extension != null) { extension.OnEnable(this); extension.ResetValues(this); } } m_PluginInformation = new Dictionary <string, string>(); m_PluginInformation["Path"] = importer.assetPath; m_PluginInformation["Type"] = importer.isNativePlugin ? "Native" : "Managed"; if (!importer.isNativePlugin) { string info; switch (importer.dllType) { case DllType.ManagedNET35: info = "Targets .NET 3.5"; break; case DllType.ManagedNET40: info = "Targets .NET 4.x"; break; case DllType.UnknownManaged: info = "Targets Unknown .NET"; break; case DllType.WinMDNET40: info = "Managed WinMD"; break; case DllType.WinMDNative: info = "Native WinMD"; break; default: throw new Exception("Unknown managed dll type: " + importer.dllType.ToString()); } m_PluginInformation["Assembly Info"] = info; } m_ReferencesUnityEngineModule = importer.HasDiscouragedReferences(); ResetCompatability(ref m_Preload, (imp => imp.isPreloaded)); }
private void OnEnable() { if (!this.IsEditingPlatformSettingsSupported()) { return; } IPluginImporterExtension[] additionalExtensions = this.additionalExtensions; for (int i = 0; i < additionalExtensions.Length; i++) { IPluginImporterExtension pluginImporterExtension = additionalExtensions[i]; pluginImporterExtension.OnEnable(this); } foreach (BuildTarget current in PluginImporterInspector.GetValidBuildTargets()) { IPluginImporterExtension pluginImporterExtension2 = ModuleManager.GetPluginImporterExtension(current); if (pluginImporterExtension2 != null) { pluginImporterExtension2.OnEnable(this); pluginImporterExtension2.ResetValues(this); } } this.m_PluginInformation = new Dictionary <string, string>(); this.m_PluginInformation["Path"] = this.importer.assetPath; this.m_PluginInformation["Type"] = ((!this.importer.isNativePlugin) ? "Managed" : "Native"); }
public override void OnEnable() { if (this.IsEditingPlatformSettingsSupported()) { IPluginImporterExtension[] additionalExtensions = this.additionalExtensions; for (int i = 0; i < additionalExtensions.Length; i++) { IPluginImporterExtension pluginImporterExtension = additionalExtensions[i]; pluginImporterExtension.OnEnable(this); } foreach (BuildTarget current in PluginImporterInspector.GetValidBuildTargets()) { IPluginImporterExtension pluginImporterExtension2 = ModuleManager.GetPluginImporterExtension(current); if (pluginImporterExtension2 != null) { pluginImporterExtension2.OnEnable(this); pluginImporterExtension2.ResetValues(this); } } this.m_PluginInformation = new Dictionary <string, string>(); this.m_PluginInformation["Path"] = this.importer.assetPath; this.m_PluginInformation["Type"] = ((!this.importer.isNativePlugin) ? "Managed" : "Native"); if (!this.importer.isNativePlugin) { string value; switch (this.importer.dllType) { case DllType.UnknownManaged: value = "Targets Unknown .NET"; break; case DllType.ManagedNET35: value = "Targets .NET 3.5"; break; case DllType.ManagedNET40: value = "Targets .NET 4.x"; break; case DllType.WinMDNative: value = "Native WinMD"; break; case DllType.WinMDNET40: value = "Managed WinMD"; break; default: throw new Exception("Unknown managed dll type: " + this.importer.dllType.ToString()); } this.m_PluginInformation["Assembly Info"] = value; } this.m_ReferencesUnityEngineModule = this.importer.HasDiscouragedReferences(); } }
private void OnEnable() { if (this.IsEditingPlatformSettingsSupported()) { foreach (IPluginImporterExtension extension in this.additionalExtensions) { extension.OnEnable(this); } foreach (BuildTarget target in GetValidBuildTargets()) { IPluginImporterExtension pluginImporterExtension = ModuleManager.GetPluginImporterExtension(target); if (pluginImporterExtension != null) { pluginImporterExtension.OnEnable(this); pluginImporterExtension.ResetValues(this); } } this.m_PluginInformation = new Dictionary <string, string>(); this.m_PluginInformation["Path"] = this.importer.assetPath; this.m_PluginInformation["Type"] = !this.importer.isNativePlugin ? "Managed" : "Native"; if (!this.importer.isNativePlugin) { string str; switch (this.importer.dllType) { case DllType.UnknownManaged: str = "Targets Unknown .NET"; break; case DllType.ManagedNET35: str = "Targets .NET 3.5"; break; case DllType.ManagedNET40: str = "Targets .NET 4.x"; break; case DllType.WinMDNative: str = "Native WinMD"; break; case DllType.WinMDNET40: str = "Managed WinMD"; break; default: throw new Exception("Unknown managed dll type: " + this.importer.dllType.ToString()); } this.m_PluginInformation["Assembly Info"] = str; } } }
public override void OnEnable() { if (!IsEditingPlatformSettingsSupported()) { return; } foreach (var extension in additionalExtensions) { extension.OnEnable(this); } foreach (BuildTarget platform in GetValidBuildTargets()) { IPluginImporterExtension extension = ModuleManager.GetPluginImporterExtension(platform); if (extension != null) { extension.OnEnable(this); extension.ResetValues(this); } } m_PluginInformation = new Dictionary <string, string>(); m_PluginInformation["Path"] = importer.assetPath; m_PluginInformation["Type"] = importer.isNativePlugin ? "Native" : "Managed"; if (!importer.isNativePlugin) { string info; switch (importer.dllType) { case DllType.ManagedNET35: info = "Targets .NET 3.5"; break; case DllType.ManagedNET40: info = "Targets .NET 4.x"; break; case DllType.UnknownManaged: info = "Targets Unknown .NET"; break; case DllType.WinMDNET40: info = "Managed WinMD"; break; case DllType.WinMDNative: info = "Native WinMD"; break; default: throw new Exception("Unknown managed dll type: " + importer.dllType.ToString()); } m_PluginInformation["Assembly Info"] = info; } m_ReferencesUnityEngineModule = importer.HasDiscouragedReferences(); }
private void OnEnable() { if (this.IsEditingPlatformSettingsSupported()) { foreach (IPluginImporterExtension extension in this.additionalExtensions) { extension.OnEnable(this); } foreach (BuildTarget target in GetValidBuildTargets()) { IPluginImporterExtension pluginImporterExtension = ModuleManager.GetPluginImporterExtension(target); if (pluginImporterExtension != null) { pluginImporterExtension.OnEnable(this); pluginImporterExtension.ResetValues(this); } } this.m_PluginInformation = new Dictionary <string, string>(); this.m_PluginInformation["Path"] = this.importer.assetPath; this.m_PluginInformation["Type"] = !this.importer.isNativePlugin ? "Managed" : "Native"; } }