public void DrawSetting(SerializedObject serializedObject) { SerializedProperty settings = serializedObject.FindProperty("iosSettings"); using (new EditorGUIEx.GroupScope("iOS Settings")) { EditorGUILayout.LabelField("XCode Project", EditorStyles.boldLabel); EditorGUI.indentLevel++; { EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("languages"), availableLanguages, true); EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("frameworks"), availableFrameworks, true); EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("services"), availableServices, true); EditorGUIEx.FilePathField(settings.FindPropertyRelative("entitlementsFile"), "Select entitlement file.", "", "entitlements"); } EditorGUI.indentLevel--; EditorGUILayout.LabelField("Signing", EditorStyles.boldLabel); SerializedProperty spAutomaticallySign = settings.FindPropertyRelative("automaticallySign"); EditorGUI.indentLevel++; { EditorGUILayout.PropertyField(spAutomaticallySign); EditorGUILayout.PropertyField(settings.FindPropertyRelative("developerTeamId")); if (!spAutomaticallySign.boolValue) { EditorGUILayout.PropertyField(settings.FindPropertyRelative("codeSignIdentity")); EditorGUILayout.PropertyField(settings.FindPropertyRelative("profileId")); EditorGUILayout.PropertyField(settings.FindPropertyRelative("profileSpecifier")); } } EditorGUI.indentLevel--; EditorGUILayout.LabelField("exportOptions.plist Setting", EditorStyles.boldLabel); EditorGUI.indentLevel++; { SerializedProperty spGenerate = settings.FindPropertyRelative("generateExportOptionPlist"); EditorGUILayout.PropertyField(spGenerate, new GUIContent("Generate Automatically")); if (spGenerate.boolValue) { EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("exportMethod"), availableExportMethods, false); EditorGUILayout.PropertyField(settings.FindPropertyRelative("uploadBitcode")); EditorGUILayout.PropertyField(settings.FindPropertyRelative("uploadSymbols")); } } EditorGUI.indentLevel--; } }
public void DrawSetting(SerializedObject serializedObject) { SerializedProperty settings = serializedObject.FindProperty("androidSettings"); using (new EditorGUIEx.GroupScope("Android Settings")) { EditorGUILayout.LabelField("Keystore", EditorStyles.boldLabel); EditorGUI.indentLevel++; { EditorGUIEx.FilePathField(settings.FindPropertyRelative("keystoreFile"), "Select keystore file.", "", ""); EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystorePassword")); EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystoreAliasName"), new GUIContent("Alias")); EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystoreAliasPassword"), new GUIContent("Alias Password")); } EditorGUI.indentLevel--; } }