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

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

1041. 安卓无论怎么打开都白屏,IOS无问题 [ 63%]

...但是不是一开始调用的function里的一句  var tmpitem_t = Laya.loader.getRes('./comp/custom_assets/group0_0.png',);无论我把url改成什么,把这段代码放到哪里,安卓就会白屏,我甚至删掉了一些其他一些Laya.getloader.getRes,还是会白屏,而且不报错...

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

1042. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 63%]

...i项目。简单的调用接口如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设...

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

1043. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 63%]

...olor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUS...

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

1044. []加载模型文件为服务器文件时,模型文件中的配置fileconfig.json获取不到 [ 62%]

...一样,如下: 本地资源 网络资源: 导致的原因是在Laya.loader.loadPackage加载网络资源时fileConfig.json中图片相关配置无法加载导致的,现在我们是重写了原码,暂时能解决这个问题。在_loadSubFileConfig方法中要增加服务器的地址,如...

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

1045. 材质-BlinnPhong-高光贴图 [ 62%]

..., 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.positi...

来源: Laya_示例 发布时间: 20260303

1046. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 62%]

... = 1; i <= 8; i++) urls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.p...

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

1047. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 62%]

...加载成功,但是加载外部图片就不行,没有任何反应 Laya.loader.load(["https://xxdzz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handl...

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

1048. 材质-BlinnPhong-法线贴图 [ 62%]

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

来源: Laya_示例 发布时间: 20260303

1049. 无法触发浏览器文件上传框 [ 62%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

1050. 加载TiledMap 不显示 [ 62%]

...{     //  this.tiledMap = new TiledMap();     //  // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () =>     //  // {     //      this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....

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