大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya_示例(51) Laya3.0_文档(46) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...
来源: Laya_示例 发布时间: 20240930
... //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ( [ { url: "res/a...
来源: Laya_社区 发布时间: 20180513
...les/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:...
来源: Laya_社区 发布时间: 20210420
....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...
来源: Laya_社区 发布时间: 20160722
...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...
来源: Laya_社区 发布时间: 20180416
...可以找到drawTexture()方法,除此之外,还需要了解laya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示: ![图3](img/3.png) (图3) ![图4](img/4.png) (图4) ![图2](img/5.png) (图5...
来源: Laya2.0_文档 发布时间: 20210715
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.load...
来源: Laya_示例 发布时间: 20240930
...:TextField; } } import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import flash.net.URLVariables; class LoadDebugConfig { public function LoadDebugConfig(execute:Function) { this.execute = execute; var loader:U...
来源: Laya_社区 发布时间: 20200217
开启WorkerLoader后透明图片会变暗 一些前提: 1.通过Laya.loader.load加载了一个lh文件2.lh文件包含了一个MeshSprite3D,使用了EffectMaterial材质3.材质内引用了一张透明度为80的图片4.加载前调用了Laya.WorkerLoader.enableWorkerLoader(); 效果: 不开...
来源: Laya_社区 发布时间: 20220525
...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...
来源: Laya_社区 发布时间: 20180320