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.
getting actorName with id
Re: getting actorName with id
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);