• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0031 秒)

161. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...tends Laya.Script { @property({ type: Laya.Sprite3D }) sp3: Laya.Sprite3D; constructor() { super(); } onEnable() { console.log("Game onStart", this.sp3.name); } } 除非有特别的需求,我们并不建议这样做,一方面是因为静态物体更有利于IDE内进行编辑。另一方面是...

来源: Laya3.0_文档 发布时间: 20251010

162. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 34%]

... /** 数据*/         public static DATA: string = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();        ...

来源: Laya_社区 发布时间: 20161109

163. 时间轴动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...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