Summary
A component which uses Animation Events with the Function Name "Event" to trigger a callback.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- MonoBehaviour
graph BT
Type-->Base0["MonoBehaviour"]
Type["SimpleEventReceiver"]
class Type type-node
Syntax
[AddComponentMenu(Strings.MenuPrefix + "Simple Event Receiver")]
[HelpURL(Strings.DocsURLs.APIDocumentation + "/" + nameof(SimpleEventReceiver))]
public class SimpleEventReceiver : MonoBehaviour
Remarks
This component must always be attached to the same
UnityEngine.GameObject
as the UnityEngine.Animator
in
order to receive Animation Events from it.
Documentation: Simple Events
Attributes
Type | Description |
---|---|
AddComponentMenu | |
HelpURLAttribute |
Properties
Name | Value | Summary |
---|---|---|
OnEvent | Animation |
[
UnityEngine.SerializeField ] A callback for Animation Events with the Function Name "Event". |