Does DialogueActor look for the character gameOjbect only for children?

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

Does DialogueActor look for the character gameOjbect only for children?

Post by fkkcloud »

Hello,

Does DialogueActor look for the character gameObject only for children?

if I have Dialogue Actor like below in the gameObject hierarchy- would it find the gameObject/Animator that is "within" the Dialogue Actor?
12312142.png
12312142.png (84.63 KiB) Viewed 287 times
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Does DialogueActor look for the character gameOjbect only for children?

Post by Tony Li »

Hi,

If you mean the Animator***() sequencer commands such as AnimatorPlay() and AnimatorBool(), then yes, it will search the Dialogue Actor's children for an Animator if it doesn't find an Animator on the Dialogue Actor GameObject.
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: Does DialogueActor look for the character gameOjbect only for children?

Post by fkkcloud »

What about "speaker" "conversant" or passing its Transform via actor name/variable in the DIalogue System node?

Which one gets priority?
If I have DialogueActor like the image and have ProximityTrigger in the Animator Node within the DialogueActor (its children)?

e.g. in Sequencer

Code: Select all

CustomSequenceFunction(CharacterName);
or

Code: Select all

CustomSequenceFunction(speaker);
or

Code: Select all

CustomSequenceFunction(conversant);
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Does DialogueActor look for the character gameOjbect only for children?

Post by Tony Li »

Hi,

CustomSequenceFunction(CharacterName) will only use the GameObject named "CharacterName".

CustomSequenceFunction(speaker) and CustomSequenceFunction(listener): The dialogue entry node's speaker will be associated with a GameObject. See Character GameObject Assignments.
Post Reply