Properties
Optional
animation
animation?: { autoPlay?: boolean; delay?: number; duration: number; easing?: Easing; id?: string; onComplete?: ((target,
isEnd,
isStop) => void); onProgress?: ((target,
key,
start,
end,
alpha,
reversed) => boolean | void); onStart?: ((target) => void); onUpdate?: ((target) => void); repeatForever?: boolean; repeatTimes?: number; tag?: string; yoyoForever?: boolean; yoyoTimes?: number; } Type declaration
Optional
autoPlay?: boolean
Optional
delay?: number
duration: number
Optional
easing?: Easing
Optional
id?: string
Optional
onComplete?: ((target, isEnd, isStop) => void)
- (target, isEnd, isStop): void
Parameters
target: any
isEnd: boolean
isStop: boolean
Returns void
Optional
onProgress?: ((target, key, start, end, alpha, reversed) => boolean | void)
- (target, key, start, end, alpha, reversed): boolean | void
Parameters
target: any
key: string
alpha: number
reversed: boolean
Returns boolean | void
Optional
onStart?: ((target) => void)
- (target): void
Returns void
Optional
onUpdate?: ((target) => void)
- (target): void
Returns void
Optional
repeatForever?: boolean
Optional
repeatTimes?: number
Optional
tag?: string
Optional
yoyoForever?: boolean
Optional
yoyoTimes?: number
Optional
animatorIndex
animatorIndex?: number
Optional
autoCompleteWhenExit
autoCompleteWhenExit?: boolean
Optional
cameraFollow
cameraFollow?: boolean
Optional
discretePointsNum
discretePointsNum?: number
Optional
euler
euler?: Euler
Optional
followAngle
followAngle?: number
Optional
followDist
followDist?: number
Optional
isAutoChangeDir
isAutoChangeDir?: boolean
Optional
offsetAngle
offsetAngle?: number
paths
paths: [number, number, number][] | Vector3[]
Optional
quatLerpT
quatLerpT?: number
Optional
startAimatorClipName
startAimatorClipName?: string
Optional
stopAimatorClipName
stopAimatorClipName?: string
Optional
target
target?: Object3D<Object3DEventMap>
动画属性