Hi,
The only other place I can think of that would make "Player" appear is the response menu. Check if the response menu's Standard UI Menu Panel component points to a PC Name field. If so, delete the PC Name GameObject, or unassign it from the PC Name field if it's the same text element as the subtitle panel's Portrait Name.
locksmitharmy wrote: ↑Wed May 11, 2022 6:16 pmtried following your advice on
another thread where you made an OnConversationLine method. its working great for adding color to the subtitle by actor, but not the portrait name
Instead of that script, add a Dialogue Actor to the character's GameObject. Set the Actor dropdown. Tick "Set Subtitle Color", and set the color there.
locksmitharmy wrote: ↑Wed May 11, 2022 6:16 pmit does sometimes, is there an event that fires when the portrait is changed i can listen for?
No, but you can make a subclass of StandardUISubtitlePanel. (See
this post to replace the script in-place.) Override the SetPortraitImage() method. Something like:
Code: Select all
public class MySubtitlePanel : StandardUISubtitlePanel
{
protected virtual void SetPortraitImage(Sprite sprite)
{
if (sprite != portraitImage.sprite)
{
Debug.Log("Hey! The portrait image is changing.");
}
base.SetPortraitImage(sprite);
}
}