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

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

641. 进行预加载,每次进入游戏都会重新加载一次 [ 54%]

...】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

642. 【文档错误】3D Camera文档添加天空盒错误 [ 54%]

...加载贴图文件 Laya.TextureCube.load("skyBox/skyCube.ltc",Laya.Handler.create(this,function(t:Laya.SkyBoxMaterial):void{ skyBox.skyboxMaterial = t; })) 这个回调里面的代码不正确吧,skyBox没有skyboxMaterial属性,它自己本身就是skyboxMaterial。 2018-12-05 添加评论 免...

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

643. 预设/场景的导出(JavaScript-3D基础(JS)-LayaAir3D之3D场景可视化编辑) [ 54%]

...景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ onComplete(scene){ // 将场景加到舞台上 Laya.stage.addChild(scene); } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

644. 百度小游戏 内存不断增大的情况 [ 54%]

...,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild...

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

645. 微信小游戏wxmin图片加载有点问题 [ 54%]

.../ console.log(123120, ape) // Laya.loader.load('res/mao.jpg', Laya.Handler.create(this, function (){ // var t = Laya.loader.getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChil...

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

646. 使用高度图的时候 Cannot read property 'width' of undefined [ 54%]

...property 'width' of undefined var terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。   附件 : --> test.rar 2017-06-01 添加评论 ...

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

647. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 54%]

... ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.tx = 2*100+ t...

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

648. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 54%]

...Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);         })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

649. layabox打包有问题用cordova打包没问题 [ 54%]

...------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):void { trace("-------------loadAllBaseConfFun------------"); } loadconfig这个方法有...

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

650. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 54%]

...Loader.IMAGE}, //这张图有问题。 ]; Laya.loader.load(loadArr,Handler.create(this, onLoad2)); 目前不知道如何解决。 有些图片没有问题,有些图片不可以,也有可能是这个图的问题,我再排查一下,重点是上个问题,protobuf文件的加载问题。 谢...

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