大约有 559 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya3.0_api(212) Laya_社区(172) Laya2.0_api(84) laya_api(74) Laya3.0_文档(8) Laya2.0_文档(6) Laya2.0_示例(3)
...的刚体销毁重新设置,篮球不会落下来 rig.destroy(); const rigidBody: Laya.Rigidbody3D = this.basketball.addComponent(Laya.Rigidbody3D); const sphereShape: Laya.SphereColliderShape = new Laya.SphereColliderShape(0.3); ...
来源: Laya_社区 发布时间: 20230220
...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
...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
...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
...些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter duration : Number粒子运行的总时长,单位为秒。ShurikenParticleSystem emission : Emission 获取发射器。 ShurikenParticleSystem em...
来源: laya_api 发布时间: 20170929
...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
...ar sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...景 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