NotKeyableAttribute
Use this attribute in a script to mark a property as non-animatable.
阅读时间3 分钟最后更新于 1 个月前
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. |