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

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

671. 限制区域拖动效果,为什么会无法限制呢? [ 73%]

...drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } console.log(dragRegion)  function onStartDrag(e) { this.startDrag(dragRegion, true, 100); } }  Laya.class(GolfMainUI, "GolfMainUI", GolfMainPageUI);  //初始化DEBUG //初始化微信小游戏 Laya....

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

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

...2628"; createTexts(); })(); function createTexts() { createText('left', 1, null, 100, 10); createText('center', 2, "#00BFFF", 155, 150); createText('right', 3, "#FF7F50", 210, 290); } function createText(align, underlineWidth, underlineColor, x, y) { var txt = new Text(); txt.text = "Layabox\n是HTM...

来源: Laya_示例 发布时间: 20251219

673. List 向上拖动到底出错 [ 73%]

... 在进行数据操作的时候,需要每次判断下当前Item是否为null,当不为null的时候再执行相应逻辑 譬如 if(item) {   trace("xxx") } 2016-08-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 刀客 相...

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

674. LayaNative 0.9.6启动时报错 [ 73%]

....ao.<init>(android.content.Context, layaair.game.conch.LayaConch5) ((null):-1) 2019-07-22 18:03:33.840 27966-27966/com.lovegame.hk.hokbok I/art:     at void layaair.game.conch.LayaConch5.InitView() ((null):-1) 2019-07-22 18:03:33.840 27966-27966/com.lovegame.hk.hokbok I/art:     at void ...

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

675. laya.net.HttpRequest_API3.0 [ 73%]

... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...

来源: Laya3.0_api 发布时间: 20231115

676. 内存不释放 [ 73%]

...I(); Laya.stage.addChild(testUI); Laya.stage.destroyChildren(); } testUI = null; 再写个循环掉用2000次,内存涨了24M,等了很久也没有降,这是正常的吗? 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

677. EventDispatcher.off的逻辑 [ 73%]

EventDispatcher.off的逻辑 想请问一下,图中listeners[i]=null的问题; 当listener1,listener2同时监听事件A,  listener1永远不移除监听, listener2不断的添加移除,这种情况会导致listeners的长度无限增长,只是里面的元素为null值。增加了遍...

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

678. 获取不到父物体 节点 [ 73%]

...到父物体 节点 类库 2.2.0beta 新手小白 不明白为什么都是null 的export default class startScene extends Laya.Scene { private sp: Sprite; public constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.nu...

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

679. laya.d3.math.Vector2 [ 73%]

...量的点积。 Vector2  forNativeElement(nativeElements:Float32Array = null):voidVector2  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector2  normalize(s:Vector2, out:Vector2):void[static] 归一化二维向量。 Vector2  rewriteNumProperty(proto:*, name:String,...

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

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

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

来源: laya_api 发布时间: 20170929