Example #1
0
 // Clip data
 private void OnClipGUI(TTSClipData clip)
 {
     // Generation Settings
     WitEditorUI.LayoutKeyLabel("Text", clip.textToSpeak);
     WitEditorUI.LayoutKeyObjectLabels("Voice Settings", clip.voiceSettings);
     WitEditorUI.LayoutKeyObjectLabels("Cache Settings", clip.diskCacheSettings);
     // Clip Settings
     EditorGUILayout.TextField("Clip ID", clip.clipID);
     EditorGUILayout.ObjectField("Clip", clip.clip, typeof(AudioClip), true);
     // Load Settings
     WitEditorUI.LayoutKeyLabel("Load State", clip.loadState.ToString());
     WitEditorUI.LayoutKeyLabel("Load Progress", (clip.loadProgress * 100f).ToString() + "%");
 }