大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1925) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...。 Geolocation getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation watchPosition(onSuccess:Handler, onError:Handler):int[static] 监视设备当前位置。回调处理器在设备位置改变时被执行。 GeolocationPublic Cons...
来源: Laya2.0_api 发布时间: 20190513
...stead. Parameters width: number height: number Default value config: any = null Default value complete: Handler = null Returns void Globals "Laya3D" Laya3D enablePhysics createRenderObjInit init Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface ...
来源: Laya3.0_api 发布时间: 20231115
...------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.method不是一个方法,看了下listener.caller就是注册的方法,修改为如下就可以正常抛出事件,请查明根本原因并修复...
来源: Laya_社区 发布时间: 20170120
...信息截图给研发商 TypeError: Cannot read property 'data' of null apploader.js:305: TypeError: Cannot read property 'data' of null pTextBitmap.data = nativeObj.data; ^^ TypeError: Cannot read pro...
来源: Laya_社区 发布时间: 20190823
...utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180524
.../comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false, true); useWorkerLoader参数设为true后,文件加载不成功? 附件 : --> Demo.zip 2019-01-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190111
...ed), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showMod...
来源: Laya_社区 发布时间: 20170905
...= "#232628"; this.createTexts(); } createTexts() { this.createText('left', null, 100, 10); this.createText('center', "#00BFFF", 155, 150); this.createText('right', "#FF7F50", 210, 290); } createText(align, underlineColor, x, y) { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt)...
来源: Laya2.0_示例 发布时间: 20251219
...目标对象,最后再检测此对象。 layerName layerName: string = null Defined in laya/map/MapLayer.ts:42 当前Layer的名称 mouseThrough mouseThrough: boolean = false Inherited from Text.mouseThrough Defined in laya/display/Sprite.ts:260 鼠标事件与此对象的碰撞检测是否可穿...
来源: Laya3.0_api 发布时间: 20231115
...鼠标按下 btn 时设置btn的滤镜,然后放开时将btn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, b...
来源: Laya_社区 发布时间: 20181221