[LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果?
const { regClass, property } = Laya;
@regClass()
export class Main extends Laya.Script {
testData = new Laya.Vector3(1, 1, 1);
@property(Laya.Camera)
camera: Laya.Camera;
onStart() {
//@ts-ignore
window.camera = this.camera;
console.log("Game start", this.camera._up);
console.log(
"Game start",
this.camera._up.x,
this.camera._up.y,
this.camera._up.z
);
}
}
@regClass()
export class Main extends Laya.Script {
testData = new Laya.Vector3(1, 1, 1);
@property(Laya.Camera)
camera: Laya.Camera;
onStart() {
//@ts-ignore
window.camera = this.camera;
console.log("Game start", this.camera._up);
console.log(
"Game start",
this.camera._up.x,
this.camera._up.y,
this.camera._up.z
);
}
}
没有找到相关结果
已邀请:
2 个回复
谷主
赞同来自:
Marco ⊙.⊙
赞同来自: