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

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

551. 体验LayaAir 3.0.0-beta.4遇到的一些问题 [ 44%]

...的刚体销毁重新设置,篮球不会落下来             rig.destroy();             const rigidBody: Laya.Rigidbody3D = this.basketball.addComponent(Laya.Rigidbody3D);             const sphereShape: Laya.SphereColliderShape = new Laya.SphereColliderShape(0.3);          ...

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

552. 微信小游戏加载资源问题 [ 44%]

...his.readyUrl]; if (ad) { ad.src = ""; if (ad._sound) { ad._sound.destroy(); ad._sound = null; ad = null; } delete MiniSound._audioCache[this.readyUrl]; } if (this._sound) { this._sound.destroy(); this._sound = null; this.readyUrl = this.url = null; } } } MiniSound._id = 0; MiniSound._audio...

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

553. drawTexture 画出来的数据会有以前的数据 [ 40%]

...eight,0,0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true); texture = new Texture(htmlCanvas); } IconSpr.graphics.drawTexture(texture); } private function onRun():void { img.x += xNum; img.y += yNum; if(img.x < 0 || img.x > (1280 - 156)) { xNum = -xNum; } if(img.y...

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

554. 安装layaair2-cmd一直失败 [ 40%]

...at TLSSocket.emit (events.js:210:5)     at emitErrorNT (internal/streams/destroy.js:92:8)     at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)     at processTicksAndRejections (internal/process/task_queues.js:80:21) > gifsicle@4.0.1 postinstall C:\Users\Administrator\AppData\Roamin...

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

555. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 36%]

...些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter  duration : Number粒子运行的总时长,单位为秒。ShurikenParticleSystem  emission : Emission 获取发射器。 ShurikenParticleSystem  em...

来源: laya_api 发布时间: 20170929

556. 2.12.2beta1 诸多bug [ 36%]

...TiledMap类内存泄漏问题 zyy • 2021-11-18 15:15 @Laya_Fred:TiledMap destroy方法先 遍历调用了tTileTexSet.clearAll 它会把自身的_aniDic属性设置为null zyy • 2021-11-18 15:18 @Laya_Fred:这样会导致 后续的 MapLayer.clearAll 执行 TileAniSprite.clearAll调用 removeAniSp...

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

557. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...ar sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...

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

558. [LayaAirIDE3]xcode切入切出声音不播放 [ 32%]

...      this.fadeIntervals.set(channel, interval);     }      public destroy(): void {         this.stopBGM();         this.stopAllEffects();         this.clearAllFades();     }      private cleanupEffectChannel(type: SoundType, url: string): void {         let oldChannel:...

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

559. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 30%]

...景 Laya.Scene.close("scene/Login.ls") //销毁指定的场景 Laya.Scene.destroy("scene/Login.ls") 8.2 场景资源加载 示例代码如下: //用Laya.Scene3D的方式加载 Laya.Scene3D.load('scene/Game.ls', Laya.Handler.create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya....

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