- Home /
Question by
AlyssaSalas · Oct 03, 2020 at 01:22 AM ·
animationbooleanparameters
Animation/Bool
I am very new to Unity but I am having trouble when it comes to booleans and animation. I have an CS1525 error Invalid Expression term >.
screenshot-11.png
(110.0 kB)
Comment
Answer by omeerdvrn · Oct 03, 2020 at 04:25 PM
@AlyssaSalas I think you should use myAnimator.SetBool("isFire", true) instead of getbool.
Answer by Aviryx · Oct 03, 2020 at 02:52 AM
Is this what you're looking for?
https://docs.unity3d.com/ScriptReference/Animator.SetBool.html