Function: ModelInstance()
ModelInstance(
__namedParameters
):Element
You can render multiple instances of the same model. If you use a model multiple times this is recommended, as it will only be loaded once into memory. This component helps with applying configs to a specific instance of a model.
Parameters
• __namedParameters: ModelInstanceProps
Returns
Element
Example
<Model source={require('model.glb')} instanceCount={2}>
<ModelInstance index={0} scale={[1, 1, 1]} />
<ModelInstance index={1} scale={[2, 2, 2]} />
</Model>