Get Gameobject name in sequence based on Dialogueactor component
Posted: Fri Sep 24, 2021 11:30 am
I wanted to see if there was an easy way to get the name of a gameobject based on the dialogue actor component for use in sequence commands.
I can write custom sequence commands if necessary but was curious if there was functionality I may have missed.
Basically i have an actor John Smith and a scene gameobject with the name John and the dialogue actor component attached with John Smith set as the actor. Is there something I can do to get the gameobject name "John" for use in command subject parameters without hardcoding in "John" to the sequence call? In this example he would not be the active actor or listener for a node, but another actor in the overall conversation.
I recently changed some gameobject names tied to actors and lots of conversation code broke and so I'm looking to prevent this for future changes, if possible.
I can write custom sequence commands if necessary but was curious if there was functionality I may have missed.
Basically i have an actor John Smith and a scene gameobject with the name John and the dialogue actor component attached with John Smith set as the actor. Is there something I can do to get the gameobject name "John" for use in command subject parameters without hardcoding in "John" to the sequence call? In this example he would not be the active actor or listener for a node, but another actor in the overall conversation.
I recently changed some gameobject names tied to actors and lots of conversation code broke and so I'm looking to prevent this for future changes, if possible.