NotKeyableAttribute
Use this attribute in a script to mark a property as non-animatable.
Read time 3 minutesLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Field)]public class NotKeyableAttribute : Attribute
Remarks
A non-animatable property cannot have key animation (not keyable). It does not appear as animatable in the Animation window and it cannot be animated in the Animator component or the Animation component.
Constructors
Constructor | Description |
|---|---|
| NotKeyableAttribute() | Use this attribute in a script to mark a property as non-animatable. |