Example #1
0
        protected override void DrawPlatformSpecificSettings()
        {
            IStandaloneBuildSetting targetSetting = (IStandaloneBuildSetting)target;

            EditorHelpers.DrawEnum(architecture, targetSetting.SupportedArchitectures, targetSetting.DefaultArchitecture, targetSetting.ArchitectureToBuild, "\"{0}\" is not supported for this build platform; \"{1}\" will be used instead.");
            EditorGUILayout.PropertyField(compression);
            EditorHelpers.DrawEnum(scriptingBackend, targetSetting.SupportedScriptingBackends, targetSetting.DefaultScriptingBackend, targetSetting.ScriptingBackend, "\"{0}\" is not supported for this build platform, on this editor; \"{1}\" will be used instead.");
        }
        private void CreateDesktopPlatformSettings <T>(string name, IPlatformBuildSetting.Architecture architecture) where T : IPlatformBuildSetting
        {
            SerializedProperty element = Add <T>(name);

            if (element.objectReferenceValue is IStandaloneBuildSetting)
            {
                IStandaloneBuildSetting setting = (IStandaloneBuildSetting)element.objectReferenceValue;
                setting.ArchitectureToBuild = architecture;
            }

            // Apply the property
            ApplyModification();
        }