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

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

681. laya.device.geolocation.Geolocation [ 73%]

...。 Geolocation  getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation  watchPosition(onSuccess:Handler, onError:Handler):int[static] 监视设备当前位置。回调处理器在设备位置改变时被执行。 GeolocationPublic Cons...

来源: Laya2.0_api 发布时间: 20190513

682. Laya3D_API3.0 [ 73%]

...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

683. JS版派发自定义事件出错。 [ 73%]

...------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.method不是一个方法,看了下listener.caller就是注册的方法,修改为如下就可以正常抛出事件,请查明根本原因并修复...

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

684. LayaNative2.0 Lable引发的crash bug(有demo) [ 73%]

...信息截图给研发商     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

685. js项目使用缓动类Tween报错 [ 73%]

...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

686. worker如何使用 [ 73%]

.../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

687. 内存释放问题 [ 73%]

...ed), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showMod...

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

688. 文本-下划线 [ 73%]

...= "#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

689. laya.map.MapLayer_API3.0 [ 73%]

...目标对象,最后再检测此对象。 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

690. 滤镜问题,有复现demo [ 73%]

...鼠标按下 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