- Home /
Question by
MaoFerrero · Apr 13, 2014 at 11:17 PM ·
animationanimation controlleranimation script
Animation layer naming convention between enemies and player
At the moment I'm using the same name for layers between player and enemy. For instance:
Player
- Base Layer
- Fighting Layer
Enemy:
- Base Layer
- Fighting Layer
Is it ok?? or should I rename to something like this
Player
- Player Base Layer
- Player Fighting Layer
Enemy:
- Enemy Base Layer
- Enemy Fighting Layer
I wonder this because I'm using the same hash for states of two different gameobjects (Animator.StringToHash("Fighting Layer.Attack")) StringToHas converts just a string to int, am I right? it doesn't look up for an existing layer/state and returns its int value?
Comment
Your answer
Follow this Question
Related Questions
How do i orginize 8+ movement animations? 1 Answer
Idle Animation Won't Play 1 Answer
Play simple animations on demand 1 Answer
Animation Error 0 Answers
Display additional animation on top of other animations 0 Answers