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

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)

731. TiledMap scale后调用moveViewPort问题 [ 90%]

...rt问题 在设置scale后调用moveViewPort会出现跳位问题,例如 this.tiledMap.scale = 1.1 this.tiledMap.moveViewPort(0,0); 实际的this.tiledMap._viewPortX是50.9,this.tiledMap._viewPortY是39.0,这样的话根本不肯能在继续正常使用moveViewPort了。 看了下代码,在...

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

732. dragonbones换装 [ 90%]

...agonbones换装 当我切换某个卡槽的图片的时候没有效果 if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTexture=this.currDisplayData.createTexture(this.currTexture); } 跟代码发现this.currDisplay...

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

733. 我想动态改自定义shader里的值,应该怎么写?? [ 90%]

....js应该怎么写??我这样写set的时候报错 Uncaught TypeError: this._setValue is not a function at CustomMaterial.setAlphaTestValue (CustomMaterial.js:34) at LayaAir3D.js:94CustomMaterial.setAlphaTestValue @ CustomMaterial.js:34 (anonymous) function CustomMaterial() {     CustomMateria...

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

734. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 90%]

...,报错如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser....

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

735. Warning!,this class[MiniAdpter] already exist: Object {init: } [ 90%]

Warning!,this class[MiniAdpter] already exist: Object {init: } Warning!,this class[MiniAdpter] already exist: Object {init: } 为什么报这个警告 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w11...

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

736. 获取相机renderTexture 作为阴影 的UV [ 90%]

...gb);    ts代码设置u_ShadowMapTex     onUpdate(){         this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false);         let v:Matrix4x4 = this.ShadowCamera.viewMatrix;         let p:Matrix4x4 = this.ShadowCamera.projectionMatrix...

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

737. addchild后,怎么去引用? [ 90%]

...引用,应该怎么去引用呢? 代码如下:listP是一个UI页面. 用this.lost1,空对象,但是用this._childs[5]是可以的 var lose1=new Laya.Animation(); lose1.loadAnimation("lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1...

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

738. websocket出错 [ 90%]

...          output=socket.output;         socket.on(Laya.Event.OPEN,this,onSocketOpen);         socket.on(Laya.Event.CLOSE,this,onSocketClose);         socket.on(Laya.Event.MESSAGE,this,onMessageRev);         socket.on(Laya.Event.ERROR,this,onConnectError); 在 socket.on(Laya.Eve...

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

739. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 90%]

...rome-extension, https.   load(url) {             var me = this;             url = URL.formatURL(url);             this.url = url;             this.audioBuffer = WebAudioSound._dataCache[url];             if (this.audioBuffer) {...

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

740. List设置滚动到指定位置之后,无法往回拖动 [ 90%]

...17-12-27 23:51 浏览: 930 关注: 2 人 tyl925450909 • 2017-12-27 23:58 this.herolist= new Laya.List(); this.herolist.selectEnable = true; this.herolist.itemRender = HeroStartHeadItem; this.heropanel.addChild(this.herolist); //UI中直接添加的panel 已经实例化 this.heropanel.hScrollBarSki...

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