Contents

setModelFileURL(_:for:)

Associates a URL to the given object category.

Declaration

mutating func setModelFileURL(_ url: URL?, for category: CapturedRoom.Object.Category) throws

Parameters

  • url:

    A URL to a 3D model.

  • category:

    The object type associated with the model URL.

Discussion

This function throws CapturedRoom.ModelProvider.Error.nonExistingFile(url:) if a 3D model doesn’t exist at the given URL.

See Also

Managing models