fozmo-3d-preview
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -66,2 +66,3 @@ import { ENV } from './framework/defines/HHGameTypes'; | ||
export declare class Fozmo3DPreview { | ||
private static _inited; | ||
/** | ||
@@ -68,0 +69,0 @@ * 启动预览 |
@@ -18,2 +18,3 @@ import { SpaceManager } from './manager/SpaceManager'; | ||
export class Fozmo3DPreview { | ||
static _inited = false; | ||
/** | ||
@@ -25,2 +26,3 @@ * 启动预览 | ||
await LaunchSpace(config); | ||
this._inited = true; | ||
} | ||
@@ -35,2 +37,5 @@ /** | ||
static destroy() { | ||
if (!this._inited) { | ||
return; | ||
} | ||
SpaceManager.inst.destroy(); | ||
@@ -37,0 +42,0 @@ SpaceManager.dispose(); |
@@ -685,4 +685,6 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager'; | ||
destroy() { | ||
this._orbitControl.dispose(); | ||
this._orbitControl = null; | ||
if (this._orbitControl) { | ||
this._orbitControl.dispose(); | ||
this._orbitControl = null; | ||
} | ||
if (this._composer) { | ||
@@ -689,0 +691,0 @@ this._composer.dispose(); |
{ | ||
"name": "fozmo-3d-preview", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "风之末 作品预览", | ||
@@ -5,0 +5,0 @@ "main": "lib/Fozmo3DPreview.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159271
4878