大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0031 秒)
...tends Laya.Script { @property({ type: Laya.Sprite3D }) sp3: Laya.Sprite3D; constructor() { super(); } onEnable() { console.log("Game onStart", this.sp3.name); } } 除非有特别的需求,我们并不建议这样做,一方面是因为静态物体更有利于IDE内进行编辑。另一方面是...
来源: Laya3.0_文档 发布时间: 20251010
... /** 数据*/ public static DATA: string = "data"; constructor(decorate?:Decorate) { super(); this.mDecorate = decorate || new Decorate(this); this.pomelo = new Pomelo(); this.configuration(); ...
来源: Laya_社区 发布时间: 20161109
...export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结果: (图9-4) Copyright ©...
来源: Laya3.0_文档 发布时间: 20251118