AnimationReferenceAttribute Class

Summary

Marks a string or int field to show a popup menu in the inspector which lets you select an animation value name or hash respectively. Values include both states and parameters.

WARNING: selecting a value using this attribute does not link the field to that state or parameter. Renaming the state or parameter will NOT automatically update the value of the attributed field.

If you're interested in an animation system which avoids the need for these weak unsafe references entirely, you should check out Animancer.
Assembly
Weaver.dll
Namespace
Weaver
Base Types
  • PropertyAttribute
graph BT Type-->Base0["PropertyAttribute"] Type["AnimationReferenceAttribute"] class Type type-node

Syntax

public sealed class AnimationReferenceAttribute : PropertyAttribute