大约有 307 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0059 秒)
Laya3.0_api(106) Laya_社区(66) Laya2.0_api(63) laya_api(42) Laya2.0_文档(16) Laya3.0_文档(11) Laya2.0_示例(3)
...方向中心线的距离(以像素为单位)。 View closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog closeHandler : Han...
来源: Laya2.0_api 发布时间: 20190513
...trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就...
来源: Laya_社区 发布时间: 20170330
...ion : Node 获取或设置当前选择的项对象。 ViewStack setIndexHandler : Handler 索引设置处理器。 默认回调参数:index:int ViewStack skewX : Number水平倾斜角度,默认值为0。以角度为单位。Sprite skewY : Number垂直倾斜角度,默认值为0。以角度...
来源: laya_api 发布时间: 20170929
... //加载引擎需要的资源 Laya.loader.load("../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 = "libs...
来源: Laya3.0_文档 发布时间: 20251010
...一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button....
来源: Laya3.0_api 发布时间: 20231115
...ya_Aaron 赞同来自: Tween.to(this,{x:40,y:50,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onUpdate)}) 大概长这个样子 2018-07-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果会用tween 就好办, tween 里面有个 update 回调,...
来源: Laya_社区 发布时间: 20180706
...中心线的距离(以像素为单位)。 Component closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog closeHandler : Hand...
来源: laya_api 发布时间: 20170929
...s原生回调问题 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 本人想做个批量加载json文件...
来源: Laya_社区 发布时间: 20180323
...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...
来源: Laya2.0_文档 发布时间: 20210714
...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/...
来源: Laya3.0_api 发布时间: 20231115