hi! so uh i wanna ask, how do you disable the animator component through script and enable it with UI button click? for like transitions and other stuff
1 Answer
1You can set the animator.enabled property to false to disable the component, which is true for a ll components. You may also want to consider an idle animation and allow that to execute while transitioning to other in response to game events, such as button clicks.