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

大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

551. 如何判断弹性滑动结束了? [ 68%]

...是手机浏览器还是pc浏览器? 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya2.1.1 微信排行榜无法滑动,按钮也无法点击 as3.0下3D引擎中通过滑动控制camera的问题 如何判断被加载的Swf里的MovieClip播放完成? 问题状态...

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

552. 横向循环滚动的list [ 68%]

...看到代码 2019-01-09 0 0 分享 微博 QZONE 微信 - 赞同来自:  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 监听到list发生滚动,进行判断位置和修改item的大小。 2019-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

553. 射线检测报错,outHitInfo.sprite3D=null; [ 68%]

... Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new...

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

554. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 68%]

...e.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya...

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

555. canvas下资源清理的问题 [ 68%]

...hild(btn2);                          btn1.on(Event.CLICK,this,onClick);             btn2.on(Event.CLICK,this,onClick);                          Laya.loader.load([{url: "res/atlas/common.atlas", type: Loader.ATLAS}]);                       ...

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

556. 使用Handler 返回name 始终是 undefined [ 68%]

使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...

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

557. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...

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

558. List 组件做的手风琴Demo [ 68%]

...e(100,300);         list.repeatX =1;         list.repeatY =this.arr.length;         list.itemRender =Item; //Item 为继承BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.ren...

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

559. 怎么监听AnimationClip.addEvent添加的事件 [ 68%]

...params = ["move"];  test_e.time = 0.2;  let test_cp:Laya.AnimationClip = this._ani.getDefaultState().clip;  test_cp.addEvent(test_e);  test_cp.on("move_over",this,this.test_over); 预想是播放到0.2秒就会发送"move_over",但事实好像不是这样的,那么怎么监听 通过addEvent...

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

560. Laya.Geolocation使用报错 [ 68%]

...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...

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