大约有 914 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(693) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(24) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...
来源: Laya_示例 发布时间: 20251209
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png")...
来源: Laya_示例 发布时间: 20251209
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - ap...
来源: Laya2.0_示例 发布时间: 20251209
... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...
来源: Laya_社区 发布时间: 20180808
关于loader加载Loader.JSON的一些问题 今天在处理本地JSON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res); //放置方块 }), null, Laya.Loader.JSON); } 代码运行到这老是报错,报错...
来源: Laya_社区 发布时间: 20200311
...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...
来源: Laya_示例 发布时间: 20251209
3D资源加载,进度显示问题 使用Laya.loader.create场景资源的时候(比如加载loveScence.ls),onProgress函数回掉监听不到,然后界面上的加载进度会一直停留在一个百分百进度,等场景里面的素材全部加载完,onProgress才会收到进度消...
来源: Laya_社区 发布时间: 20170920
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dial...
来源: Laya2.0_示例 发布时间: 20251209
...链接 提交 1 个回复 Monica - 知识达人 赞同来自: 通过Laya.loader.load进行预加载即可 2017-11-01 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xxing22657 相关问题 加载到舞台的3D模型不显示贴图 IDE1.7....
来源: Laya_社区 发布时间: 20171031
...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20160610