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

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

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

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

62. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 78%]

...0,-100 这是为啥? 我强行加入了 -  就可以了  let tmapsp=this.tMap.mapSprite();         tmapsp.zOrder=1;         this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);      ...

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

63. 3D场景跳转到2D场景问题 [ 78%]

...代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene);   th...

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

64. image在相应loaded的时候,无法正确获取高度 [ 78%]

...mic extends Laya.Image { matterBody: Matter.Body; constructor() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies....

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

65. Laya2 移除skin未加载完的image后报错 [ 78%]

...ded和cancelLoadByUrls都不管用,clearUnloaded的时候LoaderManager的this._resInfos里面没有image的resInfo所以移除不了监听 2019-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被...

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

66. drawToCanvas真机资源无法释放 [ 78%]

... 2018-12-19 0 5 分享 微博 QZONE 微信 大林 赞同来自: var htmc = this.paper.displayObject.drawToCanvas(this.paper.displayObject.width, this.paper.displayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destr...

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

67. 版本管理swf找同名的Json文件发现找不到 [ 78%]

...    (atlas===void 0)&& (atlas=false);             this['_url']=url=Laya.URL.formatURL(url);             if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json";             this.stop();             //this['_clear'](); ...

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

68. RenderTexture 无法再image上显示 [ 78%]

RenderTexture 无法再image上显示     this.modelCamera.clearFlag = Laya.CameraClearFlags.SolidColor;           this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);           this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, La...

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

69. 小游戏启用版本管理本地资源加载报错解决方案 [ 77%]

...if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(url);[/b] 改为: if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(this._url);[/b] 再修改bin/libs/laya.wxmini.js文件的下面几处即可。 1. 大约793行 if(...

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

70. websocket无法连接 [ 77%]

websocket无法连接 this.socket = new Laya.Socket(); //这里我们采用大端 this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.connectByUrl("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive)...

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