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

大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0065 秒)

871. 资源压缩成zip后加载的问题 [ 69%]

...不用处理了。 Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

872. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 69%]

...ite:Laya.Sprite = new Laya.Sprite(); sprite.graphics.drawCircle(0, 0, 250, null, "#ff0000", 4); sprite.graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild...

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

873. 圆不跟谁 sprite 一起缩放? [ 69%]

...tSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitA...

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

874. 发现一个问题Laya.Animation()创建后移除,再创建,位置会变 [ 69%]

...  cAnimation("jx10","dzb/shan10.json",100,100,327,22,200,game,false,1,1,0,null,true,null);  }  function btn2(){//移除      game.removeChildByName("dh1");  } 2018-04-11 0 0 分享 微博 QZONE 微信 zjwytqm 赞同来自: 找到原因了, //var bounds = ani.getGraphicBounds(); //ani.pivot(...

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

875. 话说Laya3D怎么自定义shader来实现后期处理呢? [ 69%]

...处理没有起作用啊cmd.blitScreenTriangle(sourceTexture, destTexture, null, this._shader, this._shaderData, 0); 2020-05-22 0 0 分享 微博 QZONE 微信 MQ 赞同来自: Try......................  render(context: { command: any; camera: { viewport: any; }; source: Laya.RenderTexture...

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

876. clip里的WeakObject.I缓存的数据有问题 [ 69%]

...ent.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } }   2017-11-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

877. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 69%]

...载文件个数获取加载进度         Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 1605953523用户 赞...

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

878. 关于如何解析远程.xml文件的问题 [ 69%]

...一个.xml文件  hrRerust.send("http://192.168.1.21:90/Game_Config.xml", null, "get", "text",null);          trace(hrRerust.data); 该语句可以读取上面.xml文件的内容 但是 我用了一些方法 都无法像本地.xml被解析后存放到数组当中 请那位高手提点一下用...

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

879. startDrag的使用问题 [ 69%]

...         */         public function startDrag(area:Rectangle = null, hasInertia:Boolean = false, elasticDistance:Number = 0, elasticBackTime:int = 300, data:* = null, disableMouseEvent:Boolean = false, ratio:Number = 0.92):void {          2018-05-02 0 2 分享 微博 QZONE 微信 ...

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

880. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...onColorPickerSkinLoaded(); } ); } private onColorPickerSkinLoaded(e: any = null): void { let colorPicker: Laya.ColorPicker = new Laya.ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = this.skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Laya.Handler(this, this...

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