Why do i keep getting the error 'Animator is not playing an animatorcontroller' when is appears to be?
i'm trying to set a trigger through code so that my menu can fade out and fade into my main game.
the animator has been set in the unity editor by dragging the animator component from the levelchanger object into the script which is on the same object.
I have tried getting the animator component using the getcomponent function but i got the exact same error.
I have also tried selecting another animator controller just to see if i could set the triggers in that one but got the same error.
and lastly I have also tried getting rid of the animator and then making another but again got the same result.
I don't know why the animator isn't 'playing the animatorcontroller' when the Fade In animation on the animator works, and shows it working in the animator window, so surely the animator is playing the animator controller otherwise the fade in animation wouldn't happen.
I would really appreciate the help as i feel like im smacking my head against a wall