大约有 11 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0125 秒)
...要用Math或parseInt取下整, int.MAX_VALUE也是同理,建议你用Number.MAX_VALUE替代,如果需要取整,就用Math来取整即可! 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fzhgren 相关问题 Laya2.0...
来源: Laya_社区 发布时间: 20170623
...{ regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } //如果没有 Setter,则 weight 为只读属性 set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 seri...
来源: Laya3.0_文档 发布时间: 20251010
...触摸点的唯一标识号(作为 int)。*/ touchId: number; /**键盘值*/ keyCode: number; /**滚轮滑动增量*/ delta: number; /** * 设置事件数据。 * @param ...
来源: Laya_社区 发布时间: 20170601
...efined in laya/events/Event.ts:195 Returns Event Properties button button: number = 0 Defined in laya/events/Event.ts:187 鼠标按键, 0:主按键,通常指鼠标左键 1:辅助按键,通常指鼠标滚轮中键 2:次按键,通常指鼠标右键 3:第四个按钮,通常指浏览...
来源: Laya3.0_api 发布时间: 20231115
...于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸点列表...
来源: Laya2.0_api 发布时间: 20190513
...于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸点列表...
来源: laya_api 发布时间: 20170929
...处于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸点列表。 Ev...
来源: Laya2.0_api 发布时间: 20190513
...处于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸点列表。 Ev...
来源: laya_api 发布时间: 20170929
...operties : [ { name : "text", type : "string" }, { name : "count" , type: "number" }, { name : "actions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以...
来源: Laya3.0_文档 发布时间: 20251010
...og("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载预留,尤其是要打开的场景资源多,并没有完全放到预加载中,还需要再自动...
来源: Laya3.0_文档 发布时间: 20241014