Hi,
How do I get a speaker or listener's Actor name in custom SequencerCommand c# class?
Speaker or Listener actor name in custom c# SequenceCommand class?
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
I just used
since I am using DialogueActor to specify all actors in conversation.
but let me know if this is the right way!
Code: Select all
speaker.GetComponent<DialogueActor>().actor
but let me know if this is the right way!
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
Hi,
I recommend using:
If the speaker or listener's Display Name contains Lua code, the Name property above will contain the final, processed version of the Display Name.
I recommend using:
Code: Select all
string speakerName = DialogueManager.currentConversationState.subtitle.speakerInfo.Name;
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
perfect. exactly what I need
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
Glad I could help!
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
somehow, my speakerInfo is not accessible!
Re: Speaker or Listener actor name in custom c# SequenceCommand class?
Sorry, I had a typo. Use:
(I just fixed it in my previous reply above, too.)
Code: Select all
DialogueManager.currentConversationState.subtitle.speakerInfo