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

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

731. 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

732. 获取相机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

733. 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

734. 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

735. 如何让发布后的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

736. 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

737. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 90%]

...取并修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D ...

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

738. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 90%]

...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...

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

739. Cannot read property 'load' of null [ 90%]

...tatic s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMa...

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

740. Texture自动恢复还是存在另外的问题 [ 90%]

...a.resource.Texture类 __proto.recoverBitmap=function(){        var _$this=this;         var url=this._bitmap.url;         if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function...

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