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

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

621. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 72%]

...this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sightBeadSprite, "SightBead", Laya.Sprite); return sightBeadSprite; }());然后如此使用destroy for (var i = 0; i < Laya.stage.numChildren; i++) { var object = Laya.sta...

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

622. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 72%]

...'sp2'; sp2.graphics.drawRect(0,0,100,100,"#0000FF"); sp2.x=110; Laya.stage.addChild(sp1); Laya.stage.addChild(sp2); onAddEvent(sp1); onAddEvent(sp2); } private function onAddEvent(target:Sprite):void { target.on(Event.MOUSE_OVER,this,onMouse); target.on(Event.MOUSE_OUT,this,onMouse); } private funct...

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

623. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 72%]

...(3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```

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

624. 粒子中引用的图片能合图吗 [ 72%]

...t.x = this.width / 2;     part.y = this.height - 100;     Laya.stage.addChild(part); } dian.png和dian.part放到demo的comp目录下。 dian.zip 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 可否把可以体现问题的能运行的例子上传下呢,我测试没有重...

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

625. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 72%]

...EARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会这个Ca...

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

626. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 72%]

...      Laya.stage.bgColor = "#ffff00";             Laya.stage.addChild(txt);         }     } } 2017-10-25 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: LayaAir引擎初始化之前不能继承,也不能进行实例化。。所以你这个报错是在引擎...

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

627. [LayaAir3]3.3版本绘制矢量图有BUG [ 72%]

..., Laya.stage.width, Laya.stage.height, '0xff0000');         Laya.stage.addChild(sp); 附件 : --> 2025-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LayaAir小牛 赞同来自: 您好,在3.3正式版...

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

628. Panel滚动条滑块位于最下方 [ 72%]

...lBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(panel); panel.addChild(img); panel.vScrollBar.min=1; panel.vScrollBar.max=500; panel.vScrollBar.value=panel.vScrollBar.max; Laya.timer.frameLoop(12,this,onLoop); } private function onLoop():void { trace(panel.vScroll...

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

629. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 72%]

...FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta...

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

630. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 71%]

....bold = true;         ti.color = "#606368";         Laya.stage.addChild(ti);         return ti;     } })(); 附件 : --> TSET.zip 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...

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