Hi,
If I understand you correctly, assign Speaker Text to all of the subtitle panels' Portrait Name fields.
If that doesn't do what you want, you can write a small script with an
OnConversationLine method. The property Subtitle.speakerInfo.Name contains the speaker's name. Example:
Code: Select all
using UnityEngine;
using PixelCrushers.DialogueSystem;
public class SetSpeakerText : MonoBehaviour {
public UnityEngine.UI.Text speakerText; // Assign in inspector.
void OnConversationLine(Subtitle subtitle) {
speakerText.text = subtitle.speakerInfo.Name;
}
}
Another option is to write a subclass of
StandardUISubtitlePanel and override the SetContent method. Then use this subclass on your subtitle panels instead of StandardUISubtitlePanel.