WToa
1
I have a current setup where if you pick up an item, the animation is set to trigger on the UI Canvas to show “+10 Health!”, it all works fine the first time, but afterwards I am unable to trigger it again when I pick up another item.
EDIT: Unity Version 4.6.1
The trigger is set by:
healthanim.SetTrigger("HealthUp");
where healthanim is:
GameObject.FindWithTag("HudCanvas").GetComponent <Animator> ();
If anyone has any thoughts on the matter it would be highly appreciated, I’m still new to Unity and trying to learn the ropes so if there is a better way to achieve what I am trying to do, feel free to suggest that too!
EDIT: My Mecanim Animation Thing
Ah, I see
Also, I believe that whether a state is allowed to re-enter itself is a behaviour that has possibly changed in different versions of Unity, so it would be helpful to know which version the OP is using. (discussed somewhat in http://forum.unity3d.com/threads/mecanim-any-state.158661/)