Contents

modelFileURL(for:)

Provides a URL to the 3D model for the given attributes.

Declaration

func modelFileURL(for attributes: [any CapturedRoomAttribute]) throws -> URL?

Parameters

  • attributes:

    An array of attributes that represent criteria for the model-URL query.

Return Value

The 3D model that the app associates to the given object’s attributes via setModelFileURL(_:for:). If no 3D model URL associates to the given attribute combination, this function returns nil.

Discussion

In error conditions, this function throws:

Query supportedCombinations to check the attributes that an object category supports.

See Also

Managing models