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

大约有 486 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

481. laya.ui.Dialog_API3.0 [ 20%]

... laya.utils.Handler.create(this, loadComplete));//加载资源 (function (_super) {//新建一个类Dialog_Instance继承自laya.ui.Dialog。 function Dialog_Instance() { Dialog_Instance.__super.call(this);//初始化父类 var bg = new laya.ui.Image("resource/ui/bg.png");//新建一个 Image 类的...

来源: Laya3.0_api 发布时间: 20231115

482. laya.ui.List_API3.0 [ 20%]

...属性值。 label.size(100, 20); addChild(label); } } example (function (_super){ function Item(){ Item.__super.call(this);//初始化父类 this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。 label.text = "100000";//...

来源: Laya3.0_api 发布时间: 20231115

483. 时间轴动画编辑详解 · LayaAir3.0文档 · LAYABOX [ 19%]

...ipt extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结果: (图9-4) Copyright ©Layabox 2022 all...

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

484. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 19%]

...enParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Parti...

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

485. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 18%]

...ypeError: this.preinitialize is not a function            !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial            TypeError: this.preinitialize is not a function                at i (http://stand.alone.version/...

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

486. 通用发布 · LayaAir3.0文档 · LAYABOX [ 15%]

...; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //Web平台使用远程包 Laya.loader.loadPackage("sub1","http://192.168.56.1:2840/",t...

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