public virtual void DrawSetting(SerializedProperty settings, IAndroidBuildSettings buildSettings) { EditorGUILayout.LabelField("Keystore", EditorStyles.boldLabel); EditorGUI.indentLevel++; { var useCustomKeystore = settings.FindPropertyRelative(nameof(_useCustomKeystore)); EditorGUILayout.PropertyField(useCustomKeystore, new GUIContent("Use custom keystore")); EditorGUI.BeginDisabledGroup(!useCustomKeystore.boolValue); var keystoreFile = settings.FindPropertyRelative(nameof(_keystoreFile)); EditorGUIExtensions.FilePathField(keystoreFile, "Select keystore file.", "", ""); DrawPassword(settings, nameof(_keystorePassword), new GUIContent("Keystore Password")); var keystoreAliasName = settings.FindPropertyRelative(nameof(_keystoreAliasName)); EditorGUILayout.PropertyField(keystoreAliasName, new GUIContent("Alias")); DrawPassword(settings, nameof(_keystoreAliasPassword), new GUIContent("Alias Password")); EditorGUI.EndDisabledGroup(); _showPasswords = EditorGUILayout.Toggle(new GUIContent("Show Passwords"), _showPasswords); } EditorGUI.indentLevel--; }
protected virtual void DrawScenesList(Rect rect, int index, bool isActive, bool isFocused) { var element = roSceneList.serializedProperty.GetArrayElementAtIndex(index); EditorGUI.PropertyField(new Rect(rect.x, rect.y, 16, rect.height - 2), element.FindPropertyRelative("enable"), GUIContent.none); EditorGUIExtensions.TextFieldWithTemplate(new Rect(rect.x + 16, rect.y, rect.width - 16, rect.height - 2), element.FindPropertyRelative("name"), GUIContent.none, s_AvailableScenes, false); }
public virtual void DrawSetting(SerializedProperty settings, IiOSBuildSettings buildSettings) { using (new EditorGUIExtensions.GroupScope("iOS Settings")) { // exportOptions.plist. EditorGUILayout.LabelField("exportOptions.plist Setting", EditorStyles.boldLabel); EditorGUI.indentLevel++; { var spGenerate = settings.FindPropertyRelative(nameof(_generateExportOptionPlist)); EditorGUILayout.PropertyField(spGenerate, new GUIContent("Generate Automatically")); if (spGenerate.boolValue) { EditorGUIExtensions.TextFieldWithTemplate(settings.FindPropertyRelative(nameof(_exportMethod)), s_AvailableExportMethods, false); EditorGUILayout.PropertyField(settings.FindPropertyRelative(nameof(_uploadBitcode))); EditorGUILayout.PropertyField(settings.FindPropertyRelative(nameof(_uploadSymbols))); } } EditorGUI.indentLevel--; } }
/// <summary> /// Draw output settings. /// </summary> protected virtual void DrawOutputBuildSettings() { GUILayout.Space(8); EditorGUILayout.LabelField("Output Options", EditorStyles.boldLabel); EditorGUI.indentLevel++; // Open output. var buildsName = _serializedObject.FindProperty("_buildsName"); EditorGUILayout.PropertyField(buildsName); var buildsDirectoryName = _serializedObject.FindProperty("_buildsDirectoryName"); EditorGUILayout.PropertyField(buildsDirectoryName); var rect = EditorGUILayout.GetControlRect(true); var buildsPath = _serializedObject.FindProperty("_buildsPath"); EditorGUIExtensions.DirectoryPathField(rect, buildsPath, new GUIContent("Builds Path"), "Select builds output directory."); EditorGUILayout.PropertyField(_serializedObject.FindProperty("_openBuildPathAfterBuild")); EditorGUI.indentLevel--; }
public virtual void DrawSetting(SerializedProperty settings, IiOSBuildSettings buildSettings) { EditorGUIExtensions.TextFieldWithTemplate(settings.FindPropertyRelative(nameof(_languages)), s_AvailableLanguages, true); }
protected virtual void DrawExcludeDirectoriesList(Rect rect, int index, bool isActive, bool isFocused) { var element = roExcludeDirectoriesList.serializedProperty.GetArrayElementAtIndex(index); EditorGUIExtensions.DirectoryPathField(rect, element, GUIContent.none, "Select exclude directory in build."); }
public virtual void DrawSetting(SerializedProperty settings, IiOSBuildSettings buildSettings) { EditorGUIExtensions.FilePathField(settings.FindPropertyRelative(nameof(_entitlementsFile)), "Select entitlement file.", "", "entitlements"); }