大约有 1,291 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); ProtoBuf.load("../../res/protobuf/awesome.proto", onAssetsLoaded); function onAssetsLoad...
来源: Laya_示例 发布时间: 20251130
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); ProtoBuf.load("res/protobuf/awesome.proto", onAssetsLoaded); function onAssetsLoaded(err...
来源: Laya2.0_示例 发布时间: 20251130
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onColorPickerSkinLoaded)); } onColorPickerSkinLoaded() { const ColorPicker = Laya.ColorPicker, Handler = Laya.Handler; let colorPicker = new ColorPicker(); colorPicker.selectedColor...
来源: Laya2.0_示例 发布时间: 20251130
Laya.loader.create 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出...
来源: Laya_社区 发布时间: 20180620
...网盘手机App,操作更方便哦 望解答。 Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => { console.log("2.8.0 字体加载是否成功:", success); Laya.Text.defaultFont = "OPPOSANS...
来源: Laya_社区 发布时间: 20201118
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { var ape = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Lay...
来源: Laya_示例 发布时间: 20251130
...main.ts: if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameC...
来源: Laya_社区 发布时间: 20200314
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514
[LayaAir3]Laya.loader 加载png图片失真 Laya.loader.load(url, { type: Laya.Loader.TEXTURE2D, propertyParams: { premultiplyAlpha: true, // 不预乘alpha ...
来源: Laya_社区 发布时间: 20250819
...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事...
来源: Laya2.0_文档 发布时间: 20210715