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

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

1. Laya.stage.addChild有没有 Laya.stage.removeChild [ 100%]

Laya.stage.addChild有没有 Laya.stage.removeChild 我现在会使用Laya.stage.addChild了 有没有 类似Laya.stage.removeChild这样的函数,把舞台的场景移除掉? 2018-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

2. Dialog和View用destroy和Laya.stage.removeChild有什么区别? [ 97%]

Dialog和View用destroy和Laya.stage.removeChild有什么区别? Dialog和View用destroy和Laya.stage.removeChild有什么区别? 2016-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自:...

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

3. 场景切换问题 [ 94%]

...容相关的链接 提交 1 个回复 189*****192 赞同来自: Laya.stage.removeChild 试一试  反正你的是加载在Laya.stage  如果不是 通过父对象删除   2017-10-24 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wuzhe...

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

4. Sprite-新手引导 [ 90%]

...(); function nextStep() { if (guideStep == guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); } else { var step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics...

来源: Laya_示例 发布时间: 20240930

5. Sprite-新手引导 [ 90%]

...xtStep(); } nextStep() { if (guideStep === guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphic...

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

6. 场景调用offAll会报错。 [ 87%]

...cene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene);  scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene); scene = new Scene(); Laya.stage.addChild(scene); Laya.stage.removeChild(scene);   报错: Uncaught TypeE...

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

7. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 81%]

...let viewIns = this; function goGameWorld() { videoElmt.pause(); Laya.stage.removeChild(reference); Laya.Browser.removeElement(videoElmt); // Laya.Browser.document.body.removeChild(videoElmt); Laya.Browser.removeElement(tipElmt); // Laya.Browser.document.body.removeChild(tipElmt); viewIns.removeSelf(...

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

8. 2D物理-桥 [ 78%]

..."; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physics_Physics_Bridge();import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Event } from "laya/events/Event"; impor...

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

9. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 77%]

...ene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新new的,模型一直在 Laya.stage.addChild(this.gamePanel); } private playWelcome(): void { Laya.stage.removeChild(this.gamePanel); this....

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

10. 输入设备-贪吃蛇(重力感应) [ 76%]

...Point(targetPosition.x, targetPosition.y)) { this.addSegment(); Laya.stage.removeChild(food); foods.splice(i, 1); } } } produceFood() { const Sprite = Laya.Sprite; // 最多五个食物同屏 if (foods.length == 5) return; let food = new Sprite(); Laya.stage.addChild(food); foods.push(food); const f...

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