Name | Summary |
---|---|
GLXFManager | constructor(context: <Error class: unknown class>) |
Name | Summary |
---|---|
Companion | object Companion |
Name | Summary |
---|---|
context | val context: <Error class: unknown class> : the context of the GLXFManager, a.k.a. the Spatial activity object. |
Name | Summary |
---|---|
addReloadedGLXFUris | fun addReloadedGLXFUris(toReloadUris: Set<<Error class: unknown class>>, basePath: File) |
deleteGLXF | |
deleteGLXFEntityAndGetDeletedChildren | |
getGLXFInfo | fun getGLXFInfo(keyName: String): GLXFInfo Returns the GLXFInfo object for the given keyName. |
getNestedGLXFInfo | |
hasGLXFInfoForUri | fun hasGLXFInfoForUri(uri: <Error class: unknown class>): Boolean Checks if there is a GLXFInfo object for a given URI. |
inflateComposition | suspend fun inflateComposition(compositionName: String, assetFolderPath: String = "scenes", rootEntity: Entity = Entity.create(), keyName: String? = null, onLoaded: (GLXFInfo) -> Unit = {}): GLXFInfo? Parses the Composition glxf file and calls inflateGLXF, inflates a GLXF file into a GLXFInfo object, adds it to the map of GLXFInfo objects, and sets the GLXF component on the root entity of the GLXF file. |
inflateGLXF | suspend fun inflateGLXF(uri: <Error class: unknown class>, rootEntity: Entity = Entity.create(), keyName: String? = null, onLoaded: (GLXFInfo) -> Unit = {}): GLXFInfo? Inflates a GLXF file into a GLXFInfo object, adds it to the map of GLXFInfo objects, and sets the GLXF component on the root entity of the GLXF file. |
reloadGLXFsFromFile | suspend fun reloadGLXFsFromFile(oldFileName: <Error class: unknown class>, newFileName: <Error class: unknown class>, meshManager: MeshManager): <Error class: unknown class> Reloads GLXFs from a file. |
setReloadType | fun setReloadType(reloadType: GLXFReloadType) Developer can pick how GLXFs reload |
tryGetGLXFInfo | fun tryGetGLXFInfo(keyName: String): GLXFInfo? Returns the GLXFInfo object for the given keyName, or null if it doesn’t exist. |
Name | Summary |
---|---|
isSupportedGLXFExtension | fun isSupportedGLXFExtension(fileName: String): Boolean |