Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

I want to play an animation by clicking ui button in unity 2d

I had written code like this but it is not working


Answers

  • mohamedmahdymohamedmahdy Member
    edited March 5

    u have write // before if

    u must write like this:

    if(input.Getkeydowen("player_crouch")

    {

    write what u want and u must not put // before anim.settrigger......

    and this will show error because u have write anim nit animator

    }

Sign In or Register to comment.