cocos 3.0 AnimationState

let ain: cc.AnimationState
底下的speed ,没有了,这要改成什么替代?
!#zh 播放速率。 */
speed: number;

getComponent(AnimationComponent).getState(‘name’).speed
还是有的,具体是指哪个版本?

请问我原本是写这样,那您指的getState(‘name’) 这里面的name是?
private light: cc.Animation = null;
let ain1: any = light.play();
ain1.getComponent(AnimationComponent).speed = 2;

ani.getState(ani.clips[0].name) 正在播放的动画名