상속: UnityEditor.Modules.DefaultPluginImporterExtension.Property
예제 #1
0
 public void ValidateSingleCPUTargets(PluginImporterInspector inspector)
 {
     DesktopPluginImporterExtension.DesktopSingleCPUProperty[] array = new DesktopPluginImporterExtension.DesktopSingleCPUProperty[]
     {
         this.m_WindowsX86,
         this.m_WindowsX86_X64,
         this.m_LinuxX86,
         this.m_LinuxX86_X64,
         this.m_OSXX86,
         this.m_OSXX86_X64
     };
     DesktopPluginImporterExtension.DesktopSingleCPUProperty[] array2 = array;
     for (int i = 0; i < array2.Length; i++)
     {
         DesktopPluginImporterExtension.DesktopSingleCPUProperty desktopSingleCPUProperty = array2[i];
         string           value     = (!desktopSingleCPUProperty.IsTargetEnabled(inspector)) ? DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.None.ToString() : desktopSingleCPUProperty.defaultValue.ToString();
         PluginImporter[] importers = inspector.importers;
         for (int j = 0; j < importers.Length; j++)
         {
             PluginImporter pluginImporter = importers[j];
             pluginImporter.SetPlatformData(desktopSingleCPUProperty.platformName, "CPU", value);
         }
     }
     this.ValidateUniversalTargets(inspector);
 }
 public void ValidateSingleCPUTargets(PluginImporterInspector inspector)
 {
     DesktopPluginImporterExtension.DesktopSingleCPUProperty[] singleCpuPropertyArray = new DesktopPluginImporterExtension.DesktopSingleCPUProperty[6] {
         this.m_WindowsX86, this.m_WindowsX86_X64, this.m_LinuxX86, this.m_LinuxX86_X64, this.m_OSXX86, this.m_OSXX86_X64
     };
     foreach (DesktopPluginImporterExtension.DesktopSingleCPUProperty singleCpuProperty in singleCpuPropertyArray)
     {
         string str = !singleCpuProperty.IsTargetEnabled(inspector) ? DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.None.ToString() : singleCpuProperty.defaultValue.ToString();
         inspector.importer.SetPlatformData(singleCpuProperty.platformName, "CPU", str);
     }
     this.ValidateUniversalTargets(inspector);
 }
예제 #3
0
        private DefaultPluginImporterExtension.Property[] GetProperties()
        {
            List <DefaultPluginImporterExtension.Property> list = new List <DefaultPluginImporterExtension.Property>();

            this.m_WindowsX86     = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86", null, null), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows));
            this.m_WindowsX86_X64 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86_x64", null, null), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows64));
            this.m_LinuxX86       = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86", null, null), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux), DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.x86);
            this.m_LinuxX86_X64   = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x86_x64", null, null), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux64), DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.x86_64);
            this.m_OSX_X64        = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TrTextContent("x64", null, null), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSX));
            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_OSX_X64);
            return(list.ToArray());
        }
		private DefaultPluginImporterExtension.Property[] GetProperties()
		{
			List<DefaultPluginImporterExtension.Property> list = new List<DefaultPluginImporterExtension.Property>();
			this.m_WindowsX86 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows));
			this.m_WindowsX86_X64 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneWindows64));
			this.m_LinuxX86 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux), DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.x86);
			this.m_LinuxX86_X64 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86_x64"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneLinux64), DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.x86_64);
			this.m_OSXX86 = new DesktopPluginImporterExtension.DesktopSingleCPUProperty(EditorGUIUtility.TextContent("x86"), BuildPipeline.GetBuildTargetName(BuildTarget.StandaloneOSXIntel));
			this.m_OSXX86_X64 = new DesktopPluginImporterExtension.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();
		}
 public void ValidateSingleCPUTargets(PluginImporterInspector inspector)
 {
   DesktopPluginImporterExtension.DesktopSingleCPUProperty[] singleCpuPropertyArray = new DesktopPluginImporterExtension.DesktopSingleCPUProperty[6]{ this.m_WindowsX86, this.m_WindowsX86_X64, this.m_LinuxX86, this.m_LinuxX86_X64, this.m_OSXX86, this.m_OSXX86_X64 };
   foreach (DesktopPluginImporterExtension.DesktopSingleCPUProperty singleCpuProperty in singleCpuPropertyArray)
   {
     string str = !singleCpuProperty.IsTargetEnabled(inspector) ? DesktopPluginImporterExtension.DesktopPluginCPUArchitecture.None.ToString() : singleCpuProperty.defaultValue.ToString();
     inspector.importer.SetPlatformData(singleCpuProperty.platformName, "CPU", str);
   }
   this.ValidateUniversalTargets(inspector);
 }