public void ValidateSingleCPUTargets(PluginImporterInspector inspector) { DesktopSingleCPUProperty[] propertyArray = new DesktopSingleCPUProperty[] { this.m_WindowsX86, this.m_WindowsX86_X64, this.m_LinuxX86, this.m_LinuxX86_X64, this.m_OSXX86, this.m_OSXX86_X64 }; foreach (DesktopSingleCPUProperty property in propertyArray) { string str = !property.IsTargetEnabled(inspector) ? DesktopPluginCPUArchitecture.None.ToString() : property.defaultValue.ToString(); inspector.importer.SetPlatformData(property.platformName, "CPU", str); } this.ValidateUniversalTargets(inspector); }
public DesktopPluginImporterExtension() : base(null) { m_WindowsX86 = new DesktopSingleCPUProperty(BuildTarget.StandaloneWindows, DesktopPluginCPUArchitecture.x86); m_WindowsX86_X64 = new DesktopSingleCPUProperty(BuildTarget.StandaloneWindows64, DesktopPluginCPUArchitecture.x86_64); m_Linux = new DesktopSingleCPUProperty(BuildTarget.StandaloneLinux64, DesktopPluginCPUArchitecture.x86_64); m_MacOS = new DesktopMultiCPUProperty(BuildTarget.StandaloneOSX, DesktopPluginCPUArchitecture.x86_64, DesktopPluginCPUArchitecture.ARM64); properties = new Property[] { m_WindowsX86, m_WindowsX86_X64, m_Linux, m_MacOS }; }
private DefaultPluginImporterExtension.Property[] GetProperties() { List<DefaultPluginImporterExtension.Property> list = new List<DefaultPluginImporterExtension.Property>(); this.m_WindowsX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows)); this.m_WindowsX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows64)); this.m_LinuxX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux), DesktopPluginCPUArchitecture.x86); this.m_LinuxX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux64), DesktopPluginCPUArchitecture.x86_64); this.m_OSXX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSXIntel)); this.m_OSXX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSXIntel64)); list.Add(this.m_WindowsX86); list.Add(this.m_WindowsX86_X64); list.Add(this.m_LinuxX86); list.Add(this.m_LinuxX86_X64); list.Add(this.m_OSXX86); list.Add(this.m_OSXX86_X64); return list.ToArray(); }
private DefaultPluginImporterExtension.Property[] GetProperties() { List <DefaultPluginImporterExtension.Property> list = new List <DefaultPluginImporterExtension.Property>(); this.m_WindowsX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows)); this.m_WindowsX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows64)); this.m_LinuxX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux), DesktopPluginCPUArchitecture.x86); this.m_LinuxX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux64), DesktopPluginCPUArchitecture.x86_64); this.m_OSXX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSXIntel)); this.m_OSXX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSXIntel64)); list.Add(this.m_WindowsX86); list.Add(this.m_WindowsX86_X64); list.Add(this.m_LinuxX86); list.Add(this.m_LinuxX86_X64); list.Add(this.m_OSXX86); list.Add(this.m_OSXX86_X64); return(list.ToArray()); }
private Property[] GetProperties() { List <Property> properties = new List <Property>(); m_WindowsX86 = new DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows)); m_WindowsX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows64)); m_LinuxX86_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux64), DesktopPluginCPUArchitecture.x86_64); m_OSX_X64 = new DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSX)); properties.Add(m_WindowsX86); properties.Add(m_WindowsX86_X64); properties.Add(m_LinuxX86_X64); properties.Add(m_OSX_X64); return(properties.ToArray()); }
public void ValidateSingleCPUTargets(PluginImporterInspector inspector) { DesktopSingleCPUProperty[] propertyArray = new DesktopSingleCPUProperty[] { this.m_WindowsX86, this.m_WindowsX86_X64, this.m_LinuxX86, this.m_LinuxX86_X64, this.m_OSXX86, this.m_OSXX86_X64 }; foreach (DesktopSingleCPUProperty property in propertyArray) { string str = !property.IsTargetEnabled(inspector) ? 0.ToString() : property.defaultValue.ToString(); foreach (PluginImporter importer in inspector.importers) { importer.SetPlatformData(property.platformName, "CPU", str); } } this.ValidateUniversalTargets(inspector); }