Camera with AnimatorTrigger bug?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Camera with AnimatorTrigger bug?

Post by aaajiao »

Screen Shot 2020-09-08 at 11.22.51 PM.png
Screen Shot 2020-09-08 at 11.22.51 PM.png (29.28 KiB) Viewed 185 times

Code: Select all

Camera(Custom camera angle,,x);
AnimatorTrigger(MoveTrigger,xxxx);
When we use it that way, we get errors.
If it's in two separate sentences, there's no problem. :roll:
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera with AnimatorTrigger bug?

Post by Tony Li »

Hi,

Is the node with "Camera(Custom camera angle,,x)" assigned to an actor that has a GameObject?

Is a GameObject assigned to the conversation actor and conversation conversant?
aaajiao
Posts: 53
Joined: Tue Sep 01, 2020 5:41 am

Re: Camera with AnimatorTrigger bug?

Post by aaajiao »

thank you, Tony.

Code: Select all

Camera(Custom camera angle,GameObject,x);
In most cases I don't have to write the GameObject, so I'm used to not writing it, in this case when I do write the GameObject, the error doesn't appear anymore! :mrgreen:
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Camera with AnimatorTrigger bug?

Post by Tony Li »

Glad to help!

If you omit the GameObject, it will use the GameObject assigned to be the node's speaker. But if the Dialogue System can't determine what GameObject is associated with the speaker, it will be null. More info in case you're interested:
Character GameObject Assignments
Post Reply