插件 3.8.5 set-property

image
请问下这个中间的1是通过什么方式获取的呢?

这里的 1 表示的是当前你要设置的组件在个节点的组件列表的第几位

可以先通过 const index = node.components.findIndex((comp: any) => comp.uuid === animationComp.uuid); 类似这样,只要能知道你设置组件在第几位即可