getting actorName with id

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

getting actorName with id

Post by fkkcloud »

Hi,

How do I get the original actor name with speakerInfo's id?
I know that speakerInfo.Name is there but this is set to Display Name. What I need is the actor name that is bonded with the id that is not changing.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: getting actorName with id

Post by Tony Li »

You can use speakerInfo.nameInDatabase. Or, to get the whole actor record:

Code: Select all

var actor = DialogueManager.masterDatabase.GetActor(speakerInfo.id);
Debug.Log(actor.Name);
Post Reply