init(mesh:modelID:instances:bounds:)
Creates a mesh instances component with a mesh resource, optional model ID, instance data, and optional bounding box.
Declaration
init(mesh: MeshResource, modelID: String? = nil, instances: LowLevelInstanceData, bounds: BoundingBox? = nil) throwsParameters
- mesh:
The mesh resource to instance.
- modelID:
The name of the model to use. Set to
nilif there is only one model in the mesh resource. - instances:
The instance data containing the number of instances, and the transforms for each instance.
- bounds:
The bounding box to use for the instance group this part draws.