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

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

721. 【简单跑酷--JS版】---Lv.6 终篇 [ 45%]

... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...

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

722. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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

723. [LayaAirIDE3]2d相机打包后问题 [ 45%]

...载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上               ...

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

724. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 45%]

...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...

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

725. LayaRender渲染含有多个part的Body存在Bug [ 45%]

... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  sp = new Laya.Sprite(); ...

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

726. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 44%]

...tyPlug 1.7.13 导出刚体动画无效 3D模型无法修改scale? 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2019-01-11 17:15 浏览: 2423 关注: 2 人 源 • 2019-01-11 18:17 清除所有力的效果不好是指什么? 叶子 • 2019-01-...

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

727. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 44%]

...断游戏本身的体验。 在加载2D资源的时候,通常使用`Laya.loader.load()`方法预加载,而预加载3D资源必须要用`Laya.loader.create()`方法。在加载完成后,可以直接使用`Laya.loader.getRes()`这个方法来获取加载完成的资源。 批量预加载的示...

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

728. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 44%]

...性后,icon就没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();   ...

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

729. 3D中如何限制角色的行走区域? [ 44%]

...tChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D               var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...

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

730. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 44%]

...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按...

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