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

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

131. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 70%]

...RunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起...

来源: Laya2.0_文档 发布时间: 20210715

132. Dialog [ 70%]

...层没有移除?是为什么? function Controller() {     Controller.super(this);      this.btn.on(Event.CLICK,this,function(){           this.destroy();     })  } Laya.class(Controller, "Controller", stUI); 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

133. Button销毁时,未对_clickHandler进行回收 [ 70%]

...对_clickHandler进行回收 源代码: destroy(destroyChild = true) { super.destroy(destroyChild); this._bitmap && this._bitmap.destroy(); this._text && this._text.destroy(destroyChild); this._bitmap = null; this._text = null; this._clickHandler = null; this._labelColors = this._s...

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

134. 为啥我在批量removeself 会报错卡死 [ 69%]

...is.mouseEnabled = true; if(this.visible == false) { this.visible = true; } super.removeSelf(); if(itemCountTx != null) { itemCountTx.removeSelf(); } return this; }   2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

135. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 69%]

...stExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,method,responseType,headers); this._http.upload.onprogress= fun...

来源: Laya2.0_文档 发布时间: 20210715

136. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

... { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 thi...

来源: Laya3.0_文档 发布时间: 20251010

137. 官方案例里摄像机绕物体旋转脚本的问题 [ 69%]

...本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者哪位大神...

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

138. RopeJoint代码动态创建 无法设置otherbody [ 69%]

...:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody);         var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody);    ...

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

139. Image设置skin的Bug [ 69%]

...mage被 destroy(destroyChild: boolean = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加载完成后,回调设置皮肤资源找不到_bitmap /**     ...

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

140. 子容器的事件问题 [ 69%]

...s ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     }     onclickTest(): void {         console.log("单击也没有效果, wh...

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