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

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

1261. Native(android)下创建二维码并显示在页面上 [ 46%]

...;             img.pos(100, 300);             Laya.stage.addChild(img);         }     }      // androidplat,创建二维码     createQrCode(url:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, wi...

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

1262. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...elSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.addChild(radio); } } 效果如动图2-1所示: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}

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

1263. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 46%]

...LoadProgressBinder.bindAll) this.progressUI.UIMenu.value = 0.0; Laya.stage.addChild(this.progressUI.displayObject); Laya.timer.loop(100, this, this.updataPosition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public lo...

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

1264. 预制体模块 · LayaAir3文档 · LAYABOX [ 46%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

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

1265. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

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

1266. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 46%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private function onError(): void{ trace("...

来源: Laya2.0_文档 发布时间: 20210715

1267. 加载到舞台的3D模型不显示贴图 [ 46%]

...,是导致我加载lh文件不显示的原因。 var staticMesh = scene.addChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.mesh...

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

1268. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 46%]

...(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature);   play(); }); }   function completeHandler() { mArmature.stop();         mArmature.removeSelf();         mArmature.removeChildren();         mArmature.destroy(true);           Laya.Pool...

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

1269. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...h").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的...

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

1270. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 46%]

...e("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是这样new Image("rank/country.png");从图...

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