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

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

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

...ment(tipElmt); // Laya.Browser.document.body.removeChild(tipElmt); viewIns.removeSelf(); Laya.stage.addChild(new GameWorld()); } videoElmt.onclick = goGameWorld; tipElmt.onclick = goGameWorld; } } } 2018-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

122. LayaBox进阶之UI管理类 [ 46%]

...his.getView(clazz); let index: number = this.getViewIndex(clazz); if(v){ v.removeSelf(); this.uiList.splice(index,1); } }[/i] [i] private getViewIndex(clazz: any):number{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.uiList[i]; if(uiData.clazz == clazz){ return i; } } retu...

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

123. Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! [ 45%]

...写一下呗 比如world->body->trail   A点移除的时候 trail.removeSelf(); trail.transform.position =  body.transform.position.clone(); world.addChild(trail);   B点新加的时候重新创建一个新的,不要用这个旧的了 2019-01-11 0 0 分享 微博 QZONE 微信 gplzh 赞同...

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

124. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 44%]

....role); this.aniSprte3D2.removeChild(this.role); //移除龙2 this.dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 this.scene.addChild(this.role); this.animator.play("hello"); ``` ![](img/4.gif)(图4)

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

125. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 44%]

....role); this.aniSprte3D2.removeChild(this.role); //移除龙2 this.dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 this.scene.addChild(this.role); this.animator.play("hello"); ``` ![](img/4.gif)(图4)

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

126. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 44%]

...e3DToAvatarNode(role); aniSprte3D2.removeChild(role); //移除龙2 dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 scene.addChild(role); animator.play("hello"); ``` ![](img/4.gif)(图4)

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

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

...          tarItem = null;             this.camera.removeSelf();             this.camera.destroy(true);             this.camera = null;              this.scene.destroy();             Laya.Scene.gc();         })); 以...

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

128. laya.d3.core.Camera_API3.0 [ 42%]

...ByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerOnce viewportPointToRay worldToNormalizedViewportPoint worldToViewportPoint drawRenderTextureByScene drawTextureCubeByScene drawTe...

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

129. laya.d3.webxr.core.WebXRCamera_API3.0 [ 41%]

...ByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerOnce viewportPointToRay worldToNormalizedViewportPoint worldToViewportPoint drawRenderTextureByScene drawTextureCubeByScene drawTe...

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

130. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** * 从父容器删除自己,如已经被删除不会抛出异常。 * @return 当前节点( Node )对象。 */ removeSelf(): Node { this._parent && this._parent.removeChild(this); return this; } ...

来源: Laya3.0_文档 发布时间: 20251010