Recall & Review
beginner
What is an Animation Event in Unity?
An Animation Event is a way to call a function at a specific time during an animation clip. It helps trigger code actions exactly when an animation reaches a certain frame.
Click to reveal answer
beginner
How do you add an Animation Event to an animation clip in Unity?
You open the Animation window, select the animation clip, move the timeline cursor to the desired frame, and click the 'Add Event' button. Then you choose the function to call.
Click to reveal answer
intermediate
What kind of functions can be called by Animation Events?
Functions must be public, belong to the animated GameObject or its children, and can have zero or one parameter of type float, int, string, or object reference.
Click to reveal answer
intermediate
Why use Animation Events instead of checking animation time in Update()?
Animation Events trigger code exactly at the right moment without extra checks every frame, making the code cleaner and more efficient.
Click to reveal answer
beginner
Can Animation Events pass parameters? If yes, what types?
Yes, Animation Events can pass one parameter of type float, int, string, or an object reference to the called function.
Click to reveal answer
What is the main purpose of an Animation Event in Unity?
✗ Incorrect
Animation Events are designed to call functions at specific times during an animation clip.
Where do you add Animation Events in Unity?
✗ Incorrect
Animation Events are added by selecting the animation clip in the Animation window and placing events on the timeline.
Which of these parameter types can NOT be passed by an Animation Event?
✗ Incorrect
Animation Events do not support bool parameters; only float, int, string, or object references are allowed.
What must be true about the function called by an Animation Event?
✗ Incorrect
The function must be public and attached to the animated GameObject or its children to be called by an Animation Event.
Why might you prefer Animation Events over checking animation time in Update()?
✗ Incorrect
Animation Events trigger code exactly at the right moment without continuous checking, improving efficiency.
Explain how to add and use an Animation Event in Unity.
Think about the steps you take in the Animation window to trigger code during animation.
You got /5 concepts.
Describe the requirements for a function to be called by an Animation Event.
Consider function visibility, location, and parameter rules.
You got /4 concepts.