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

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

471. clearUnLoaded的bug LayaAirIDE1.7.9 [ 70%]

...s("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources already exist,is repe...

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

472. ani如何实现预加载呢? [ 70%]

...会播放一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

473. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添...

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

474. TypeScript Json 数据解析 [ 70%]

...种方式 private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这...

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

475. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...tage; import laya.display.Text; import laya.ui.ComboBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/combobox.png"; /***下拉列表**/ private var comboBox:ComboBox /***提示信息文...

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

476. Laya.loader.create 和 Laya.loader.load 这两个有什么区别呢 [ 70%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,...

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

477. 资源加载清除问题 [ 70%]

资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...

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

478. Laya.Loader.getRes请教 [ 70%]

...oader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的...

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

479. Android小游戏加载不打包的图会卡资源 [ 70%]

...ao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到了Android微信客户端小游戏会卡资源,停进...

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

480. HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用 [ 70%]

...何获得场景内的元素 var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 dispone和destory的区别 view和Dialog区别 没有加载ls文件的情况下能否设置scene的颜色?还是只能黑色? Image和Sprite在应用上的区别 layaMaxUI里...

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