属性挂在对象的搜索路径是什么,参数的格式大概是什么样子

最后这个dump 的数据格式在哪里能找到

这里只有扩展格式的文档,有没有具体的参数格式文档

dump数据还没整理完:joy:

Node属性:

await Editor.Message.request('scene', 'set-property', {
                    uuid: testNodeUuid,
                    path: 'position',
                    dump: {
                        type: 'cc.Vec3',
                        value: {
                            x: 0,
                            y: 5,
                            z: 0,
                        },
                    },
                });

Node上的Component:

            await Editor.Message.request('scene', 'set-property', {
                uuid: testNodeUuid,
                path: `__comps__.1.defaultClip`,
                dump: {
                    type: 'cc.AnimationClip',
                    value: {
                        uuid: animClipUuid,
                    },
                },
            });

好的,辛苦了,只能坐等整理玩了,现在的插件API实在是和之前的差别太大了,没有文档好多东西都无法更新到最新版本.

大佬, 添加组件是这样的嘛? 为什么我添加不上自己的脚本
Editor.Message.request(‘scene’, ‘create-component’, uuid ,“Script”);