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

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

291. 3D角色动作播放时长不正确 [ 56%]

...sers/administrator/documents/myLaya/bin/libs/laya.core.js:452:29)     at LoaderManager.__proto._endLoad (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:11962:12)     at Loader.onLoaded (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:11941:11)     a...

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

292. 百度小游戏 内存不断增大的情况 [ 56%]

...大的情况 __proto.onConfigLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this....

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

293. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 55%]

...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,75...

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

294. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进度条 this.progressBar = new Laya.ProgressBar("resources/res/ui/progressBar.png"); this.progressBar.pos(10...

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

295. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 54%]

... Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{...

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

296. 在native下 Laya.Browser.window.Blob不存在 [ 54%]

...ch.getCachePath()+"/test.png", png);保存到本地,然后再用laya.net.Loader加载,我刚才试了一下,加载报错,我不知道我这种方法可不可行。 test: function (base64Str, sprite) { var imageData = base64Util.decode(base64Str); var address = conch.getCachePath() + "/test.p...

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

297. SCALE_FIXED_WIDTH适配屏幕的问题 [ 53%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

298. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 53%]

....id = "photo";         body.appendChild(input);         Laya.loader.load("comp/button.png");         let button = new UIButton("comp/button.png","点我");         button.labelSize = 30;         button.size(300,100);         button.centerX = 0;       ...

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

299. UI加载完成后无法获取控件的大小——超详细版问题 [ 53%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...

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

300. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 53%]

...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...

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