Function called on animation event

Hi,

I’m making a card game and I encounter an issue in a function called when an animation finish.

My animation call a function at 1:36 like as it is visible into this screenshot :

This is the function :

function InHandEvent() {
	transform.Rotate(Vector3(30,0,0));
	Debug.Log("inHandEvent on "+gameObject.name);
}

This function is correctly called on the good object but the rotate function is not called on the gameObject. I don’t understand why.

Have you got any idea for this issue ?

Best regards,
Florian.

I want to point out I try with other transform methods and that no error appears.

Any ideas ? I try to update any transform in this function but nothing happen.

Is it possible that the transform is still under animation control as the event is being triggered from the animation? What happens if you invoke another method that does the rotate (after a short delay)?