大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
...】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20170216
...加载贴图文件 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
...景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ onComplete(scene){ // 将场景加到舞台上 Laya.stage.addChild(scene); } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
...,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
.../ 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
...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
... 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
...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
...------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):void { trace("-------------loadAllBaseConfFun------------"); } loadconfig这个方法有...
来源: Laya_社区 发布时间: 20170804
...Loader.IMAGE}, //这张图有问题。 ]; Laya.loader.load(loadArr,Handler.create(this, onLoad2)); 目前不知道如何解决。 有些图片没有问题,有些图片不可以,也有可能是这个图的问题,我再排查一下,重点是上个问题,protobuf文件的加载问题。 谢...
来源: Laya_社区 发布时间: 20180301