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

大约有 781 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)

691. 请大家帮助优化一下这个抛物线的代码 [ 50%]

...ivate i:number = 0; constructor() { Laya.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ba...

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

692. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 50%]

...            Laya.init(1136, 640,WebGL);             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void        ...

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

693. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...ources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调...

来源: Laya3.0_文档 发布时间: 20251010

694. 请问怎么制作一个layabox js版本的加载效果 [ 49%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["./comp/progress.png", "./comp/progress$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./com...

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

695. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 49%]

... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...

来源: Laya2.0_文档 发布时间: 20210715

696. 环形进度条 [ 49%]

...麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法...

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

697. dialog的lock属性没出现 [ 49%]

...提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Butto...

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

698. [LayaNative3]Laya3.3.0 beat4 发布windows 无法导出自己的wasm文件 [ 49%]

...asm = (wasmFile, imports) => {                 return Laya.Laya.loader.fetch("libs/" + wasmFile, "arraybuffer").then(data => {                     if (data) {                         let module = new window.WebAssembly.Module(data);                     ...

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

699. 微信小游戏加载资源问题 [ 49%]

...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...

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

700. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 49%]

...ource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建...

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