xr-frame / Exports / IKeyframeAnimationData
# Interface: IKeyframeAnimationData
Keyframe动画数据的动画部分。
# Table of contents
# Properties
# Properties
# animation
• animation: Object
动画部分。
# Index signature
▪ [name: string]: IKeyframeAnimationInfo
# keyframe
• keyframe: Object
关键帧定义部分,可以参考basic-animation。
name为关键帧名字。
key为0~100的进度。
prop为属性序列,其规则为[componentName].[prop1].[prop2].[prop3]...,但是有一些特殊的缩写:
position、scale、rotation是transform组件下对应的属性,material.u_xxx则是设置材质的uniform。
prop的值,可以是数字或者数字数组。
# Index signature
▪ [name: string]: { [key: string]: { [prop: string]: number | number[]; }; }