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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

321. 动画-新版骨骼动画 [ 76%]

...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

322. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 76%]

...       //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/a...

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

323. layaair2-cmd compile 有bug [ 76%]

...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

324. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 76%]

....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

325. 自定义loadingView [ 76%]

...进行进度值传参 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

326. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 76%]

...可以找到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

327. 鼠标交互-拖动 [ 76%]

...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

328. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 75%]

...: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

329. 开启WorkerLoader后透明图片会变暗 [ 75%]

开启WorkerLoader后透明图片会变暗 一些前提: 1.通过Laya.loader.load加载了一个lh文件2.lh文件包含了一个MeshSprite3D,使用了EffectMaterial材质3.材质内引用了一张透明度为80的图片4.加载前调用了Laya.WorkerLoader.enableWorkerLoader(); 效果:   不开...

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

330. 预加载音频文件遇到的问题 [ 75%]

...载音频的代码(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