- Home /
Animation Event don't show C# methods
I've been trying to get an animation event to call on a method in C#, but it doesn't show in the animation view. This is the code I use:
using UnityEngine;
using System.Collections;
public class s_AnimEvent1 : MonoBehaviour
{
public void PrintMe( float num )
{
Debug.Log("Method called with number: " + num);
}
}
This is what I get: http://i.imgur.com/SVyYa.png
Apologies for the messed up message. Tags don't seem to work properly for some strange reason. Could it be FireFox5?
Comment
Best Answer
Answer by asafsitner · Jul 05, 2011 at 06:35 PM
Solved it. I forgot to reference the animation clip in both the Animations Array and the Animation property.
Your answer
Follow this Question
Related Questions
Creating a function to use as an event in an animation? 1 Answer
Animation callbacks and/or events? 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do I hide methods from the animation event inspector window? 2 Answers