Page 1 of 1
Camera with AnimatorTrigger bug?
Posted: Tue Sep 08, 2020 5:29 pm
by aaajiao
- Screen Shot 2020-09-08 at 11.22.51 PM.png (29.28 KiB) Viewed 187 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.
Re: Camera with AnimatorTrigger bug?
Posted: Tue Sep 08, 2020 7:19 pm
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?
Re: Camera with AnimatorTrigger bug?
Posted: Wed Sep 09, 2020 5:37 am
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!
Re: Camera with AnimatorTrigger bug?
Posted: Wed Sep 09, 2020 9:32 am
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