Search Unity

How to make [GetHit] animation setup?

Discussion in 'Scripting' started by leegod, Aug 18, 2019.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    So normally animation start from base layer and entry and default orange color animation -> [Idle].

    And from there, moving, attacking can be occur.

    But when being hit by monster, [GetHit] animation should be played. This can be occur when character is idle or attacking or whatever doing.

    So I made second animation layer for this, but I don't know how to do actually.

    I made another default orange color animation at second layer but what animation it should have?

    [GetHit] animation should only be called when being hit by monster, so I set "GetHit" animation trigger,

    but how to setup these at second layer and make it work?

    Thanks.