Contents

bounds

The bounding box to encompass all of the instances this group part draws.

Declaration

var bounds: BoundingBox?

Discussion

If bounds is nil, RealityKit calculates a bounding box for you each time you update your instances within LowLevelInstanceData.

Automatic bounds calculation is not supported when LowLevelInstanceData is updated via replace(using:). Provide a non-nil bounds value when updating instances with Metal.