大约有 314 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)
Laya_社区(213) Laya3.0_api(22) Laya2.0_文档(22) Laya3.0_文档(20) Laya_示例(16) Laya2.0_示例(15) laya_api(3) Laya2.0_api(3)
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190323
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本...
来源: Laya_示例 发布时间: 20260106
... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...
来源: Laya3.0_文档 发布时间: 20251105
...画则没问题 // 当播放完成动画的时候,判断了一手Laya.loader.getRes是否还存在,不走load加载,直接从loader.getRes获取大纹理对象,则播放会闪烁 // 如果每次都走load接口加载则正常 我是拿3.0.11测试的,实际上从309版本修复了纹...
来源: Laya_社区 发布时间: 20240116
...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...
来源: Laya_社区 发布时间: 20180315
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); //...
来源: Laya2.0_示例 发布时间: 20260106
...代码为: let zipUrl = "resources/files/config.zip"; Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then( (value) => { JSZip.loadAsync(value).then( ...
来源: Laya_社区 发布时间: 20230208
...有一个默认尝试重新下载的时间跟次数限制,你可以参考LoaderManager这个类的一些变量,在官网API中都有详细的说明 2018-03-31 0 4 分享 微博 QZONE 微信 Laya_XS 赞同来自: 断网的话 在Loader里会返回error的回调,你直接监听Laya.loader.on(Eve...
来源: Laya_社区 发布时间: 20180331
...的提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用...
来源: Laya_社区 发布时间: 20161115
...会引起单元格上的按钮点击后多次触发点击事件 请问下loader如何强制加载一个文件,避免浏览器的缓存 图片添加点击事件 有的不生效 问题状态 最新活动: 2017-08-16 16:42 浏览: 1122 关注: 2 人
来源: Laya_社区 发布时间: 20170816