Animancer v6.0 is currently available for testing.

SimpleEventReceiver Class

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 AnimationEventReceiver
[UnityEngine.SerializeField] A callback for Animation Events with the Function Name "Event".