Page 1 of 1
Get actorName from an actor component but not the display name
Posted: Sun May 12, 2024 1:12 am
by Syoka
Hi, I want to make a script with method that: Input the DialogueActor component, then the method will StartConversation(actorName+"Conversation"), but the actor name is expected to be the database name but not the display name.
I have tried GetActorName() but it is the display name...
Re: Get actorName from an actor component but not the display name
Posted: Sun May 12, 2024 10:37 am
by Tony Li
Hi,
Use the "actor" property:
Code: Select all
void StartConversationWithDialogueActor(DialogueActor dialogueActor)
{
DialogueManager.StartConversation(dialogueActor.actor + " Conversation");
}
Re: Get actorName from an actor component but not the display name
Posted: Mon May 13, 2024 1:02 am
by Syoka
Oh Thank you!
Re: Get actorName from an actor component but not the display name
Posted: Mon May 13, 2024 9:44 am
by Tony Li
Glad to help!