B
B
BadCats2018-03-29 21:35:12
C++ / C#
BadCats, 2018-03-29 21:35:12

Play animation with script and animator?

There is a button on the stage - by clicking on which the script is triggered

public Animator anim;
 public void Load()
    {
      
        anim.PlayInFixedTime("planet animation");
     
        
        //Application.LoadLevel(1);
    }

But an error occurs
Controller 'Sphere': Transition '' in state 'planet animation' uses parameter '' which does not exist in controller.

5abd367fe21b1164321104.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2018-03-30
@BadCats

ah stop re-reading.
you made a transaction in the animator. transition to the next state (this arrow)
in it you added some kind of condition, with a parameter.
and then the roofing felts were removed the parameter, roofing felts were somehow canceled - and the animator now swears at this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question