FungusでSayコマンドを作ると、中身がこんな風になっています。
この四角で囲ってる部分はデフォルトでOFFになってたりONになってたりしますが、この初期設定を変更したい場合は、プロジェクトウインドウから Fungus > Scripts > Commands フォルダ内にあるSay.csを編集することが必要です。
// Removed this tooltip as users's reported it obscures the text box [TextArea(5,10)] [SerializeField] protected string storyText = ""; [Tooltip("Notes about this story text for other authors, localization, etc.")] [SerializeField] protected string description = ""; [Tooltip("Character that is speaking")] [SerializeField] protected Character character; [Tooltip("Portrait that represents speaking character")] [SerializeField] protected Sprite portrait; [Tooltip("Voiceover audio to play when writing the text")] [SerializeField] protected AudioClip voiceOverClip; [Tooltip("Always show this Say text when the command is executed multiple times")] [SerializeField] protected bool showAlways = true; [Tooltip("Number of times to show this Say text when the command is executed multiple times")] [SerializeField] protected int showCount = 1; [Tooltip("Type this text in the previous dialog box.")] [SerializeField] protected bool extendPrevious = false; [Tooltip("Fade out the dialog box when writing has finished and not waiting for input.")] [SerializeField] protected bool fadeWhenDone = true; [Tooltip("Wait for player to click before continuing.")] [SerializeField] protected bool waitForClick = true; [Tooltip("Stop playing voiceover when text finishes writing.")] [SerializeField] protected bool stopVoiceover = true; [Tooltip("Wait for the Voice Over to complete before continuing")] [SerializeField] protected bool waitForVO = false;
この変数をそれぞれ変更すればOKです。
また、同スクリプトにStartまたはAwakeメソッドに追加すれば、既に作成された個々のコマンドをチェックすることなく全ての設定を統一することも可能です。
public void Start() { //例えばこんな感じ fadeWhenDone = true; waitForClick = false; stopVoiceover = false; waitForVO = true; }
※エディター上には反映されませんが、ゲームを起動するとStartまたはAwakeで設定したとおりの設定になります。