Search Unity

Animator no transition

Discussion in 'Getting Started' started by hrohibil, May 12, 2021.

  1. hrohibil

    hrohibil

    Joined:
    Apr 17, 2021
    Posts:
    280
    Hello
    Please help here.

    I created a rigged Lego model in blender.

    I made a simple IDLE and a RUN animation in two separate blend files. Exported as fbx.

    please see screenshot.

    I just want to create so pressing the up key then the run animation should fire up. If not then idle.

    I assigned a character o troller and a simple player scripts.

    when pressing play I don’t get any message in the console.

    the idle animation just plays forever as I have set it to loop but nothing happened when pressing the up key, no transitions.

    i have set to use integers to transition so when my parameter called AnimPar is equal to 1 it should run and 0 is idle

    please advice










     
  2. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    Are you sure you have a key called "up" defined in your input settings?

    Try something like

    Input.GetKey(KeyCode.Up)

    Or a different key just for testing, like.

    Input.GetKey(KeyCode.Space)