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,官方文档描述的示例,测试没有问题。
小哥哥,谢谢,非常感谢 我也不知道为啥突然间又好了。
在次麻烦一下,Editor,projectPath 是undefined 是啥情况
我的回复错了, 改成下面这个。
Editor.Project.path
非常感谢,问题完美解决