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

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

971. dialog的popup方法不会关闭其他弹窗 [ 69%]

.../ } this.normalDialog = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog);  }  }     // 弹窗代码   class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.b...

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

972. 如何实现panel的滚动条拖动屏幕时显示,不拖动则隐藏的功能 [ 69%]

...加触碰时间,mousedown的时候设置panel的_vScrollBar的visible为true。但是跟踪到定义里面发现注释为私有的,想知道是否有另外公开的方法来实现这个功能。另外EVENT里面有个DRAG_START的事件不知道如何才触发? 2018-08-28 添加评论 免费...

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

973. laya.display.EffectAnimation_API3.0 [ 69%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

来源: Laya3.0_api 发布时间: 20231115

974. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 69%]

...      this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              ...

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

975. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 69%]

...mg,state):any{ this.swfAni = new Laya.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni....

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

976. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 69%]

...e.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function onStartDragPicture(e) { console.log('onStartDragPicture e', e); } 返回的信息: Event _stoped: false currentTarget: Stage {focus: null, design...

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

977. 节点的visible在初始化的时候生效,但是在Event的方法里面不生效 为什么呢? [ 69%]

...化的时候 let trainItem = new trainItemUI(); trainItem.answer.visible = true;  //这个是可以生效的 questionNode = trainItem; 后续有一个事件 option.on(Laya.Event.MOUSE_DOWN, null, function(e){   option.startDrag({}, false, 1) }) option.on(Laya.Event.MOUSE_MOVE, null, function(){ ...

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

978. WebGLContext2D arcTo方法如果设置了setPathId 无法绘制 [ 69%]

... }感觉这个判断有问题,因为setPathId 之后 mHaveKey就设置为true了, 这样arcTo 后面的代码都不会运行了。绘制就没有了   而同样的arc方法的判断是这样的   public function arc(cx:Number, cy:Number, r:Number, startAngle:Number, endAngle:Number, counterclock...

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

979. laya.maths.Rectangle [ 69%]

... ReturnsBoolean — 如果 Rectangle 对象包含指定的点,则值为 true;否则为 false。 copyFrom()method  public function copyFrom(source:Rectangle):Rectangle 复制 source 对象的属性值到此矩形对象中。 Parameters source:Rectangle — 源 Rectangle 对象。 ReturnsRectangl...

来源: Laya2.0_api 发布时间: 20190513

980. laya.resource.Texture2DArray_API3.0 [ 69%]

...number depth: number format: TextureFormat Default value mipmap: boolean = true canRead: boolean Default value sRGB: boolean = false Returns Texture2DArray Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 Readonly depth depth: number Defined in laya/...

来源: Laya3.0_api 发布时间: 20231115