//创建新节点
const info = await Editor.Message.request(‘scene’, ‘query-node’, ‘94gHgoMM5NiqcT7dKm6DS6’);
const uuid = await Editor.Message.request(‘scene’, ‘create-node’, { parent: info[‘uuid’][‘value’], assetUuid: ‘f6d668fd-c2f2-48cd-bfb0-eed50b077146’ });
我是这样创建一个项目中的一个prefab节点的,但是不知道创建出来后怎么设置节点的位置和旋转。
看见一个reset-node的,但是api中没有让我传递数据进去,就只传递一个uuid,所以就很奇怪~~有大佬知道吗
您好,找到方法了吗?
const newNode: string = await Editor.Message.request(‘scene’, ‘create-node’, {
parent: targetNode.uuid,
assetUuid: this.config.prefabId,
position: { x: position.x, y: position.y, z: position.z },
unlinkPrefab: true,
}) as any;
位置可以用这种方法设置,但是旋转我也在找怎么弄 
找到了,
await Editor.Message.request(‘scene’, ‘set-property’, {
uuid: newNode,
path: ‘rotation’,
dump: {
value: rotation
},
});
这样设置