大约有 307 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0086 秒)
Laya3.0_api(106) Laya_社区(66) Laya2.0_api(63) laya_api(42) Laya2.0_文档(16) Laya3.0_文档(11) Laya2.0_示例(3)
...加到舞台上。 package { import laya.ui.ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景...
来源: Laya3.0_api 发布时间: 20231115
....tw1 = Laya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15...
来源: Laya_社区 发布时间: 20180315
...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个wor...
来源: Laya2.0_文档 发布时间: 20210715
...方法。 Hierarchy EventDispatcher SoundChannel Index Properties completeHandler isStopped loops startTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties completeHandler completeHandler: Handler Defined in laya/medi...
来源: Laya3.0_api 发布时间: 20231115
...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/animation/AnimationClip.ts:61 加载动画片段。 Parameters url: string 动画片段地址。 complete: Handler 完成回掉。load Returns void Globals "laya/d3/animation/AnimationClip" A...
来源: Laya3.0_api 发布时间: 20231115
... Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Sprite3D" Sprite3D constructor _extra _sce...
来源: Laya3.0_api 发布时间: 20231115
...ON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res); //放置方块 }), null, Laya.Loader.JSON); } 代码运行到这老是报错,报错原因是有不认识的字符,我想了下,resUrl指向的是本...
来源: Laya_社区 发布时间: 20200311
...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...
来源: Laya2.0_文档 发布时间: 20210715
...etString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello JS!"); } catch (JSONException e) { e.printStackTrace(); } ExportJavaFunction.CallBackTo...
来源: Laya3.0_文档 发布时间: 20250422
...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Avatar.ts:35 加载Avatar文件。 Parameters url: string Avatar文件。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Avatar" Avatar constructor destoryedImmedia...
来源: Laya3.0_api 发布时间: 20231102