creator3d 1.1 Editor.Ipc.sendToPanel help?

请告诉我如何在cocos创建者3d 1.1中发送Editor.Ipc.sendToPanel(‘scene’,‘set-property’,…事件。

what do you want to do?

我想知道如何使用cocos creator 3d 1.1“ Editor.Ipc.sendTo Panel(‘scene’,‘set-property’)”发送事件。

I would like to know how to send an event using cocos creator 3d 1.1 “Editor.Ipc.sendTo Panel(‘scene’,‘set-property’)”.

‘set-property’ is used for changing the property of node or component. here is a simple example:

await Editor.Ipc.requestToPackage('scene', 'set-property', {
    uuid: testNodeUuid, // node uuid
    path: `__comps__.1.defaultClip`, // property path
    dump: {// the value you want to set has to be organized as a dump object
        type: 'cc.AnimationClip',
        value: {
            uuid: animClipUuid,
        },
    },
});

thank you!