private void ShowMainGUI() { GUILayout.Space(10); EditorGUILayout.BeginHorizontal(); HedraEditor.SetButton("Specific", delegate { rangedOption = false; }); HedraEditor.SetButton("Ranged", delegate { rangedOption = true; }); EditorGUILayout.EndHorizontal(); GUILayout.Space(20); targetOption = (TargetOptions)EditorGUILayout.EnumPopup("Affect: ", targetOption); rotationOption = (RotationOptions)EditorGUILayout.EnumPopup("Rotate: ", rotationOption); GUILayout.Space(10); if (rangedOption) { ShowRangedGUI(); } else { ShowSpecificGUI(); } }
private void ShowSpecificGUI() { HedraEditor.InspectorView(this, "rotations"); GUILayout.Space(20); HedraEditor.SetButton("Randomize!", SpecificRandomization); }
private void ShowMainGUI() { GUILayout.Space(10); targetOption = (TargetOptions)EditorGUILayout.EnumPopup("Affect: ", targetOption); GUILayout.Space(20); HedraEditor.InspectorView(this, "materials"); GUILayout.Space(20); HedraEditor.SetButton("Randomize!", RandomizeMaterial); }
private void ShowMainGUI() { GUILayout.Space(10); GUILayout.Label("Root"); nameRoot = GUILayout.TextField(nameRoot); GUILayout.Label("Separator"); separator = GUILayout.TextField(separator); GUILayout.Space(20); HedraEditor.SetButton("Apply", GiveName); }
private void ShowRangedGUI() { HedraEditor.SetToggle("X", ref X, xRange.Show); GUILayout.Space(10); HedraEditor.SetToggle("Y", ref Y, yRange.Show); GUILayout.Space(10); HedraEditor.SetToggle("Z", ref Z, zRange.Show); GUILayout.Space(20); percentage = EditorGUILayout.FloatField("Percentage", percentage); GUILayout.Space(20); HedraEditor.SetButton("Randomize!", RangedRandomization); }