Source set: Android
public interface SpatialGltfModelSource
Defines the source for a 3D model to be rendered by the SpatialGltfModel composable.
Instances of SpatialGltfModelSource are created using fromPath, fromUri, or fromData.
Functions
createModel
public suspend fun createModel(session: Session): GltfModel
Creates a GltfModel from the source.
Parameters
| session | The XR session to create the model in. |
Returns
The created GltfModel. |