大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0140 秒)
...待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的事情监听,自身的timer监听,移除子对象及从父节点移除自己。</p> * @param destroyChild (可选)是否同时销毁...
来源: Laya_社区 发布时间: 20181121
...te _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ pu...
来源: Laya_社区 发布时间: 20180930
...编写一个类A继承自Laya.View 2.在设计模式下,选择,文件->项目设置->UICode导入类 3.填写`import View = A;` 4.设计模式导出一下UI,就可以看到所有的View都被替换成了自己的类A了。 PS:如果是Dialog也一样,写入`import Dialog = B`,B...
来源: Laya_社区 发布时间: 20161008
... this.list_rule.totalPage; let index = Math.floor(value / page) if (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_U...
来源: Laya_社区 发布时间: 20181112
...瞄准点和整体的中心点 */ private _pivot_demon:Point = <Point>{ x: 50, y: 50 }; /** 特指血条+魔鬼的大小, 用于计算飞行物整体大小 */ private _top_area:Area = <Area>{ w: -1, h: -1 }; /** 血条 */ private _blood_chart: Laya.ProgressBar; // toset: private ...
来源: Laya_社区 发布时间: 20180515
..."http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{ let hr = new Laya.HttpRequest(); hr.http.timeout = 3000; hr.http.ontimeout = function(){console.log("http timeout test: timeout")}; hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http tim...
来源: Laya_社区 发布时间: 20171016
...able(): void { this._animator = this.owner.getComponent<Laya.Animator2D>(Laya.Animator2D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加...
来源: Laya_社区 发布时间: 20251211
...多自动换一行 隐私政策</br> 本版更新时间:2023年【07】月【13】日</br> 欢迎您选择由我们及关联公司(以下统称“我们”)提供的产品及/或服务(下统称“服务”),我们尊重...
来源: Laya_社区 发布时间: 20230829
...:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系上的 Y 轴坐...
来源: laya_api 发布时间: 20170929
...方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; this.font...
来源: Laya3.0_文档 发布时间: 20251010