大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0064 秒)
...; 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
...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
...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
...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...
来源: Laya3.0_文档 发布时间: 20241014
...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...
来源: Laya3.0_文档 发布时间: 20250214
...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
...,是导致我加载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
...(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
...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
...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