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

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

201. 分享:TiledMap设置viewport后黑屏问题! [ 56%]

...ectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } //切记:设置tiledMap的宽高,需要在地图创建完成之后 private function onLoaded():void { var sp:Sprite=tiledMap.mapSprite() as Sprite;//为tiledMap整个地图的显示容器设置宽高 sp.size(8...

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

202. 特效播放问题 [ 56%]

...看来是中途的时候缓存池中的特效资源现实了,需要重新load资源。但是我查看代码并没有发现有地方卸载资源。这是在商业项目中发现的,不能提供源码 Monica • 2017-10-23 15:24 @rgxianzhan:如果是WebGL下的话,引擎默认会自动管理小...

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

203. SCALE_FIXED_WIDTH适配屏幕的问题 [ 56%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

204. 场景天空(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 56%]

...mponent(CameraMoveScript); //加载相机天空盒材质 Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(null, function(mat) { var skyRenderer:SkyRenderer = camera.skyRenderer; skyRenderer.mesh = Laya.SkyBox.instance; skyRenderer.material = mat; })); ``` 效...

来源: Laya2.0_文档 发布时间: 20210715

205. 不存在的资源路径问题 [ 56%]

...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...

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

206. mouseThrough的功能问题 [ 56%]

...台,并命名好var,方便给它添加点击事件用(代码里就是load了2张image并重叠放到一起) 2、双击进入image内部,在组件面板的graphcis下拖拽一个多边形poly到image下,并设置多个pints,通过点与点的连线,拼凑成大猩猩的外观模样,...

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

207. 同一类型光源互斥的问题报告 [ 55%]

...w Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3(0, 0, 0); var material2...

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

208. 背景音乐音效问题 [ 55%]

... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

209. Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 [ 55%]

Laya.loader.create 进度回调函数执行两次!!! 上次发问题一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.fl...

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

210. 关于mouseThough=true的问题 [ 55%]

...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...

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