scene-script

V2.1
Q1: Editor.log( Editor.projectPath);
输出: Undefined
Q2: Editor.Scene.callSceneScript(‘hello-world’, ‘children’, function (err, length) {
console.log(get-canvas-children callback : length - ${length});
});
有场景脚本,也有方法,输出:
Failed to send ipc message hello-world:children to panel scene, message not found

Editor.projectInfo.path 改成 Editor.projectInfo.path。
第二个问题,需要提供下demo,官方文档描述的示例,测试没有问题。

终于有人回了,插件文档不全也就算了,麻烦改动插件api的时候能把这个放到改动说明里面好吗?然后文档上的错误你们不改吗?

小哥哥,谢谢,非常感谢 :yum: 我也不知道为啥突然间又好了。
在次麻烦一下,Editor,projectPath 是undefined 是啥情况

我的回复错了, 改成下面这个。
Editor.Project.path

非常感谢,问题完美解决:yum: