/// <inheritdoc/> public void OnGUI(string searchContext) { GUILayout.Label("Configuration for your Text to Speech provider.", CreatorEditorStyles.ApplyPadding(CreatorEditorStyles.Label, 0)); GUILayout.Space(8); TextToSpeechConfiguration config = TextToSpeechConfiguration.Instance; Editor.CreateEditor(config, typeof(TextToSpeechConfigurationEditor)).OnInspectorGUI(); GUILayout.Space(8); CreatorGUILayout.DrawLink("Need Help? Visit our documentation", "https://developers.innoactive.de/documentation/creator/latest/articles/developer/12-text-to-speech.html", 0); }
public override void OnGUI(string searchContext) { EditorGUILayout.Space(); GUIStyle labelStyle = CreatorEditorStyles.ApplyPadding(CreatorEditorStyles.Paragraph, 0); GUILayout.Label("These settings help you to configure Snap Zones within your scenes. You can define colors and other values that will be set to Snap Zones created by clicking the 'Create Snap Zone' button of a Snappable Property.", labelStyle); EditorGUILayout.Space(); editor.OnInspectorGUI(); EditorGUILayout.Space(20f); if (GUILayout.Button("Apply settings in current scene")) { SnapZone[] snapZones = Resources.FindObjectsOfTypeAll <SnapZone>(); foreach (SnapZone snapZone in snapZones) { SnapZoneSettings.Instance.ApplySettingsToSnapZone(snapZone); } } }