- Home /
Question by
Crazygamer0872 · Apr 19, 2018 at 04:41 PM ·
c#scripting problempublic variablebehaviourthis
Access Animator parameters in StateMachineBehaviour Script
Hello i want to Acces and edit the Animator parameters in a StateMachineBehaviour Script. i tried it with "this." but it didn't show up any parameter and tried to Acces it by first setting up a public Animator animatorName but i cant't put the Animator Component in it.
Comment
Answer by mattseaton22 · Jul 25, 2018 at 03:29 AM
The animator instance is passed to the callbacks. See the manual:
https://docs.unity3d.com/ScriptReference/StateMachineBehaviour.html