大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....
来源: Laya_社区 发布时间: 20171211
....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...
来源: Laya2.0_文档 发布时间: 20210715
...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...
来源: Laya3.0_文档 发布时间: 20230303
...ign = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调整,所有分包后的js文件统一放在h5文...
来源: Laya_社区 发布时间: 20151225
... } this.ElementView.addChild(clip); } config.xml本份规矩,老老实实,勤勤恳恳用utf8编码的,长这个样子 <layout> <clip id="1" res="res/logo.png" anchorX="0.5" anchorY="0.5" clipX="...
来源: Laya_社区 发布时间: 20170918
...); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: htt...
来源: Laya_社区 发布时间: 20170522
... this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_M...
来源: Laya_社区 发布时间: 20170810
...3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); })); 代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口 然后就加载的时候出错......代理服务器的...
来源: Laya_社区 发布时间: 20180322
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210714
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210715