Contents

boundingBox(atTime:)

Returns the minimum region entirely enclosing the asset’s contents at the specified time sample.

Declaration

func boundingBox(atTime time: TimeInterval) -> MDLAxisAlignedBoundingBox

Parameters

  • time:

    A timestamp referring to timed information in the asset.

Return Value

The asset’s bounding box as of the specified time sample.

Discussion

If an asset does not contain timed information, calling this method with any time sample is equivalent to reading the boundingBox property.

All assets can provide bounding box information without traversing their hierarchy of objects.

See Also

Working with Asset Content