大约有 2,738 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)
Laya_社区(1923) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...则值为 true,否则值为 false。 */ event(type: string, data: any = null) 用于派发事件,例如我们可以在代码中来派发一个CLICK事件 : //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya....
来源: Laya3.0_文档 发布时间: 20251010
...addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node...
来源: Laya2.0_api 发布时间: 20190513
... dispose():void 释放声音资源。 Sound event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指...
来源: Laya2.0_api 发布时间: 20190513
...ods Show Inherited Public Methods MethodDefined By Radio(skin:String = null, label:String) 创建一个新的 Radio 类实例。 Radio addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):v...
来源: Laya2.0_api 发布时间: 20190513
...//xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(Laya.stage.width, Laya.stage.h...
来源: Laya2.0_示例 发布时间: 20251209
...e = type; ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON); } load没有设置忽略缓存 应该 static enable(manifestFile, callback, type = 2) { ResourceVersion.type = type; ...
来源: Laya_社区 发布时间: 20201218
...ods Show Inherited Public Methods MethodDefined By Image(skin:String = null) 创建一个 Image 实例。 Image addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节...
来源: Laya2.0_api 发布时间: 20190513
...接口`instantiate`。 ```typescript static instantiate(original, parent = null, worldPositionStays = true, position = null, rotation = null); ``` - original :原始精灵。 - parent:父节点。 - worldPositionStays: 是否保持自身世界变换。 - position:世界位置,worldPositionStays为fa...
来源: Laya2.0_文档 发布时间: 20210714
...addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node...
来源: Laya2.0_api 发布时间: 20190513
...addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearAll():void 清理 TileAniSprite clearTimer(caller:*, method:Function):void 清理定时器。...
来源: Laya2.0_api 发布时间: 20190513