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

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

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

202. 场景天空(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

203. 不存在的资源路径问题 [ 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

204. mouseThrough的功能问题 [ 55%]

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

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

205. 同一类型光源互斥的问题报告 [ 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

206. 背景音乐音效问题 [ 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

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

208. 关于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

209. 场景天空(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 55%]

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

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

210. 场景天空(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 55%]

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

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