setModelFileURL(_:for:)
Associates a URL to the given attributes.
Declaration
mutating func setModelFileURL(_ url: URL?, for attributes: [any CapturedRoomAttribute]) throwsParameters
- url:
A URL to a 3D model.
- attributes:
An array of attributes that represents a unique combination to which to associate the URL.
Discussion
In error conditions, this function throws:
CapturedRoom.ModelProvider.Error.nonExistingFile(url:) if a 3D model doesn’t exist at the given URL.
CapturedRoom.ModelProvider.Error.attributeCombinationNotSupported if no object category supports all of the argument attributes.
Query supportedCombinations to check the attributes that a category supports.