大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...r:any,method:Function,args?:any[],coverBefore?:boolean,jumpFrame?:boolean):void;这个函数开启一个游戏主循环,这是如果caller.$_GID是1,method.$_TID是500000,那么this._map会存入一个500001的一个key进入,随着游戏玩的时间越来越长功能也越多的情况下,...
来源: Laya_社区 发布时间: 20210701
...h", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写应该没问题吧? 155*****924 • 2019-05-16 15:18 Utils3D...
来源: Laya_社区 发布时间: 20190516
...G.jpg"); Laya.stage.frameLoop(1, this, this.animate); } private animate(): void { if (this.tick > this.frequency) { this.tick = 0; // iterate through the dudes and update the positions var laser: Laser = new Laser(); laser.loadImage("../../res/pixi/laser0" + ((this.type % 5) + 1) + ".png"); this.typ...
来源: Laya_示例 发布时间: 20260303
...reateAnimation), null, Loader.ATLAS); } private function createAnimation():void { var url:Array=; for(var i:int=1;i<30;i++) { if(i<10) { url.push("res/fighter/fighter/rollSequence000"+i+".png"); } else { url.push("res/fighter/fighter/rollSequence00"+i+".png"); } } Animation.createFrames(url,"m...
来源: Laya_社区 发布时间: 20160610
...this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200); //文本标签内容 cb1.labe...
来源: Laya2.0_文档 发布时间: 20210715
...G.jpg"); Laya.stage.frameLoop(1, this, this.animate); } private animate(): void { if (this.tick > this.frequency) { this.tick = 0; // iterate through the dudes and update the positions var laser: Laser = new Laser(); laser.loadImage("res/pixi/laser0" + ((this.type % 5) + 1) + ".png"); this.type++; l...
来源: Laya2.0_示例 发布时间: 20260303
...候还是会下载 * 'unknownError' * @param {function(localfile:string):void} onEnd 更新完成的回调 */ window['updateByZip'] =function(url, onEvent, onEnd){ let cachePath = conch.getCachePath(); let localfile = cachePath+url.substr(url.lastIndexOf('/')); /** * 下载文件,保存到localfil...
来源: Laya_社区 发布时间: 20180108
...也 确实进行了相关的操作 private onTexLoad(tex:Laya.Texture2D):void { // let oldTex = this.material.getTexture(); this.material.setTexture(tex); this.plane.active = true; // if(oldTex) // { // MeshPool.destoryRes(oldTex["keyUrl"],oldTex); // } }我所注视的就是上面在laya.3d.js ...
来源: Laya_社区 发布时间: 20190612
...en"); //conch.setExternalLink('http://www.baidu.com'); } } } render():void{ this.ctx.fillStyle='#99d9ea'; this.ctx.fillRect(0,0,window.innerWidth,window.innerHeight); window.requestAnimationFrame(this.render); } } } new Webview.GameMain(); Laya_Aaron • 2018-05-28 14:40 我就是用的你的...
来源: Laya_社区 发布时间: 20180525
...in1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200); //文本标签内容 cb1.label="我是多...
来源: Laya2.0_文档 发布时间: 20210714