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

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

381. 无法清除指定定时器 [ 73%]

无法清除指定定时器 发起一个定时器: Laya.timer.loop(1000,this,this.fan); 当执行 Laya.timer.clear(this,this.fan);时, 控制台还是在执行 fan 函数里的代码 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

382. Animator无法监听complete [ 73%]

Animator无法监听complete 首先,我新增了多个clip到Animator: this.ani = this.actor.getComponentByType(Laya.Animator) as Laya.Animator; this.ani.addClip(clipSuccess, this.ANIM_SUCCESS_IDLE_NICK,0,34); this.ani.addClip(clipFailed, this.ANIM_FAILED_IDLE_NICK,0,34); this.ani.addClip(clipCardI...

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

383. DOM元素-视频 [ 73%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video();class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.a...

来源: Laya2.0_示例 发布时间: 20251209

384. Laya截图3D场景相关模型,导致模型透视! [ 73%]

..., false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,...

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

385. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 73%]

..._owner不为null if(_isScal&&_owner) { _owner.on(Event.MOUSE_DOWN,this,onDown); } else { return; } } public function get isScale():Boolean { return _isScal; } public function set isScale(isScal:Boolean):void { this._isScal=isScal; } private function onDown():void { //按下,按钮进行缩...

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

386. Sprite3D的Layer(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 73%]

...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...

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

387. Sprite3D的Layer(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 73%]

...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...

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

388. LAYABOX游戏实时语音之APP版本 [ 73%]

....getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对像不一样了,先把他用that存这,如果你们有更好的办法可以说下,我是临时用两天时间边学边做,不太懂JAVA(PS:压根...

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

389. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled...

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

390. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); private function dispose():void  {     Laya.timer.clear(this, animateFrameRateBased); } ``` ​ 当一个对象的生命周期结束时,记得清...

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