Structure

ARView.DebugOptions

Options for drawing overlay content in a scene that aids in debugging the scene.

Declaration

struct ARView.DebugOptions

Topics

Configuring Debug Options

static let none: ARView.DebugOptions

Disable all debugging overlays.

static let showPhysics: ARView.DebugOptions

Draw visualizations for collision objects and rigid bodies.

static let showStatistics: ARView.DebugOptions

Enable statistics collection and visualization.

static let showWorldOrigin: ARView.DebugOptions

Display a coordinate axis indicating the position and orientation of the AR world coordinate system.

static let showFeaturePoints: ARView.DebugOptions

Display a point cloud showing intermediate results of the scene analysis used to track device position.

Creating a Debug Option Set

Testing for Membership in a Debug Option Set

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

func contains(ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

Adding and Removing Options

func insert(ARView.DebugOptions) -> (inserted: Bool, memberAfterInsert: ARView.DebugOptions)

Adds the given element to the option set if it is not already a member.

func remove(ARView.DebugOptions) -> ARView.DebugOptions?

Removes the given element and all elements subsumed by it.

func subtract(ARView.DebugOptions)

Removes the elements of the given set from this set.

func subtracting(ARView.DebugOptions) -> ARView.DebugOptions

Returns a new set containing the elements of this set that do not occur in the given set.

Combining Options

func union(ARView.DebugOptions) -> ARView.DebugOptions

Returns a new option set of the elements contained in this set, in the given set, or in both.

func formUnion(ARView.DebugOptions)

Inserts the elements of another set into this option set.

func intersection(ARView.DebugOptions) -> ARView.DebugOptions

Returns a new option set with only the elements contained in both this set and the given set.

func formIntersection(ARView.DebugOptions)

Removes all elements of this option set that are not also present in the given set.

func symmetricDifference(ARView.DebugOptions) -> ARView.DebugOptions

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func formSymmetricDifference(ARView.DebugOptions)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

Comparing Options

func isSubset(of: ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isStrictSubset(of: ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isSuperset(of: ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func isStrictSuperset(of: ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isDisjoint(with: ARView.DebugOptions) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

Relationships

Conforms To

See Also

Debugging the Session

var debugOptions: ARView.DebugOptions

The current debugging options.