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

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

601. UI加载完成后无法获取控件的大小——超详细版问题 [ 92%]

...ay.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { co...

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

602. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 92%]

...in_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 ...

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

603. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 92%]

...ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给其他...

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

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

...量removeself 会报错卡死 override public function removeSelf():Node { this.scaleX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; } super.removeSe...

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

605. 有没有js版本Tween clear相关的demo?? [ 92%]

...)操作后不管用,我的写法如下leftToRight1(){ Laya.Tween.clear(this.leftToRightTween1); this.leftToRightTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.left...

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

606. new Laya.Templet() 时,说这不是一个constructor [ 92%]

....0的“技术文档 → 动画进阶 → 示例代码”是这样写的!this.templet = new Laya.Templet();  2018-12-12 0 1 分享 微博 QZONE 微信 180*****237 赞同来自: 碰到同样问题了,我用的是LayaAir2.0。也是说: TypeError: Laya.Templet is not a constructor   能有详...

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

607. shader 问题[关闭] [ 92%]

...e2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D....

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

608. 还是自定义事件问题。 [ 92%]

还是自定义事件问题。 A实例 a.on("vj_move", this, this.onChange,this._data);  监听    在A类  抛事件 this.event("vj_move","abc");   断点监听处  this._data没数据   是不是写法有问题???   2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

609. sound manager在MOUSE_OVER事件中无法播放 [ 92%]

...       Laya.stage.bgColor = "#232628";              this.setup();         }          private setup(): void {             var gap: number = 10;              //创建一个Sprite充当音效播放按钮             var...

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

610. [LayaAir2]某些手机播放视频偶现崩溃,日志显示缓冲区被丢弃 [ 92%]

...偶现崩溃,日志显示缓冲区被丢弃 [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 10 is dropped, handle=0x750dc86a80 [Debug][Video]IsPaused: true [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 9 is dropped...

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