What would be the best way to go about inserting a carriage return between every line of dialogue so I don't have to remember to manually put one at the start of each dialogue box?
I think once I know that I'd probably be able to start also having it insert the actor/conversant names at the top of paragraph as well? If that's a different matter altogether, can you give me any tips on that as well?
Thanks
Making slight changes to how dialogue displays
Re: Making slight changes to how dialogue displays
Hi,
You can add a script with an OnConversationLine method to the Dialogue Manager GameObject. Example:
You can add a script with an OnConversationLine method to the Dialogue Manager GameObject. Example:
Code: Select all
using UnityEngine;
using PixelCrushers.DialogueSystem;
public class AddLineSpacing : MonoBehaviour
{
void OnConversationLine(Subtitle subtitle)
{
if (!string.IsNullOrEmpty(subtitle.formattedText.text))
{
subtitle.formattedText.text += "\n";
}
}
}
Re: Making slight changes to how dialogue displays
Fantastic, thank you!
Re: Making slight changes to how dialogue displays
Glad to help!