start() {
let node = instantiate(this.Pre);
node.setParent(this.node);
resources.load("spriteFrame", Prefab, (err, loadedPrefab)=> {
this.node.getComponent(Script).Pre = loadedPrefab;
console.log(this.Pre);
});
console.log(this.node.getComponent(Script).Pre.name);
}
预格式化文本报错[PreviewInEditor] The thing you want to instantiate is nil




