Get Actor Portrait
Posted: Tue Mar 15, 2022 10:49 pm
Hi
I am trying to get the actor portrait of a (future) conversation, like so:
DialogueManager.masterDatabase.GetActor(conversation.GetDialogueEntry(1).ActorID).GetPortraitSprite(1).texture)
However, it returns a NullReference Exception.
I have assigned the Portrait to the actor object both as a sprite and texture2d.
The conversation is the right one, as other data loads correctly, such as subtitle.
What am I doing wrong?
Thank you!
I am trying to get the actor portrait of a (future) conversation, like so:
DialogueManager.masterDatabase.GetActor(conversation.GetDialogueEntry(1).ActorID).GetPortraitSprite(1).texture)
However, it returns a NullReference Exception.
I have assigned the Portrait to the actor object both as a sprite and texture2d.
The conversation is the right one, as other data loads correctly, such as subtitle.
What am I doing wrong?
Thank you!