I cant figure out how to edit a couple things :(
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
I cant figure out how to edit a couple things :(
It is probably simple and I am just ignorant, but here it is:
1: I dont want it to show the speakers name by each Subtitle Text, it is redundant for me
2: I never want it to say player in the Portrait Name, I only want it to show the person the player is talking to.
If these arent features outright, can you point me in the direction of the code that changes the Portrait Name aswell as the code that builds the Subtitle Text, I can fix it myself... I just cant find the code
1: I dont want it to show the speakers name by each Subtitle Text, it is redundant for me
2: I never want it to say player in the Portrait Name, I only want it to show the person the player is talking to.
If these arent features outright, can you point me in the direction of the code that changes the Portrait Name aswell as the code that builds the Subtitle Text, I can fix it myself... I just cant find the code
Re: I cant figure out how to edit a couple things :(
Hi,
Note: If unticking 'Add Speaker Name' doesn't get rid of the prepended name, check your characters' GameObjects for Dialogue Actor components. If 'Set Subtitle Color' is ticked on any Dialogue Actor components, untick Apply Color To Prepended Name.
Inspect your dialogue UI's subtitle panel(s) and UNtick 'Add Speaker Name'.locksmitharmy wrote: ↑Wed May 11, 2022 2:20 pm1: I dont want it to show the speakers name by each Subtitle Text, it is redundant for me
Tick Only Show NPC Portraits.locksmitharmy wrote: ↑Wed May 11, 2022 2:20 pm2: I never want it to say player in the Portrait Name, I only want it to show the person the player is talking to.
Note: If unticking 'Add Speaker Name' doesn't get rid of the prepended name, check your characters' GameObjects for Dialogue Actor components. If 'Set Subtitle Color' is ticked on any Dialogue Actor components, untick Apply Color To Prepended Name.
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
Re: I cant figure out how to edit a couple things :(
You are a god among men, thank you so much!
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
Re: I cant figure out how to edit a couple things :(
So, I made those changes and the player name still shows up in the portrait name
The unticking of Add Speaker Name worked perfectly though, thank you
The unticking of Add Speaker Name worked perfectly though, thank you
Re: I cant figure out how to edit a couple things :(
In your dialogue database, is your player actor's 'Is Player' checkbox ticked?
Does your dialogue UI have a single subtitle panel or multiple?
Does your dialogue UI have a single subtitle panel or multiple?
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
Re: I cant figure out how to edit a couple things :(
Yes, Player 'Is Player'
and I just have 1 subtitle panel
and I just have 1 subtitle panel
Re: I cant figure out how to edit a couple things :(
What does your conversation look like? In the Dialogue Editor, try setting the conversation's Actor to Player and Conversant to the NPC. Then make sure the dialogue entry nodes are assigned to the correct actors:
Also try assigning the first dialogue node to the NPC (like the screenshot above) if it's currently assigned to the player.
Also try assigning the first dialogue node to the NPC (like the screenshot above) if it's currently assigned to the player.
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
Re: I cant figure out how to edit a couple things :(
Im using this as a test dialog so I can figure out all the possible issues I may have:
-
- Posts: 7
- Joined: Wed May 11, 2022 2:10 pm
Re: I cant figure out how to edit a couple things :(
Ive kinda given up on making the player name disapear, Im having it change color instead... tried 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
it does sometimes, is there an event that fires when the portrait is changed i can listen for?
(sorry, its getting more and more complicated as I play with it, pretty awesome asset)
it does sometimes, is there an event that fires when the portrait is changed i can listen for?
(sorry, its getting more and more complicated as I play with it, pretty awesome asset)
Re: I cant figure out how to edit a couple things :(
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.
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.
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 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
No, but you can make a subclass of StandardUISubtitlePanel. (See this post to replace the script in-place.) Override the SetPortraitImage() method. Something like: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?
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);
}
}