Class Database
Hierarchy
- Database
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new Database
Parameters
-
urlToScene: string
defines the url to load the scene
-
callbackManifestChecked: (checked: boolean) => any
defines the callback to use when manifest is checked
-
-
Parameters
-
checked: boolean
Returns any
-
-
-
-
Optional disableManifestCheck: boolean
defines a boolean indicating that we want to skip the manifest validation (it will be considered validated and up to date)
Returns Database
-
Properties
Static IDBStorage EnabledSearch playground for IDBStorageEnabled
Gets a boolean indicating if Database storate is enabled (off by default)
Accessors
enable Scene Offline
-
Gets a boolean indicating if scene must be saved in the database
Returns boolean
enable Textures Offline
-
Gets a boolean indicating if textures must be saved in the database
Returns boolean
Methods
load FileSearch playground for loadFile
-
Loads a file from database
Parameters
-
url: string
defines the URL to load from
-
sceneLoaded: (data: any) => void
defines a callback to call on success
-
-
Parameters
-
data: any
Returns void
-
-
-
-
Optional progressCallBack: (data: any) => void
defines a callback to call when progress changed
-
-
Parameters
-
data: any
Returns void
-
-
-
-
Optional errorCallback: () => void
defines a callback to call on error
-
-
Returns void
-
-
-
Optional useArrayBuffer: boolean
defines a boolean to use array buffer instead of text string
Returns void
-
load ImageSearch playground for loadImage
-
Loads an image from the database
Parameters
-
url: string
defines the url to load from
-
image: HTMLImageElement
defines the target DOM image
Returns void
-
openSearch playground for open
-
Open the database and make it available
Parameters
-
successCallback: () => void
defines the callback to call on success
-
-
Returns void
-
-
-
errorCallback: () => void
defines the callback to call on error
-
-
Returns void
-
-
Returns void
-
Class used to enable access to IndexedDB
https://doc.babylonjs.com/how_to/caching_resources_in_indexeddb