API reference
API reference
Select your platform
No SDKs available
No versions available

TrackerConfiguration Struct

Extends IEquatable< TrackerConfiguration >
Represents a configuration for a Tracker.
A configuration is used to indicate what types of trackables you'd like the Tracker to track.
Configure a Tracker by calling Tracker.ConfigureAsync, or o get a tracker's current configuration using Tracker.Configuration.

Properties

The Tracker should track keyboards.
When true, a Tracker should attempt to track physical keyboards in the real environment.Not all devices support keyboard tracking. You can test for keyboard tracking support with KeyboardTrackingSupported.
Whether keyboard tracking is supported.
Use this to test for keyboard tracking support before calling Tracker.ConfigureAsync with KeyboardTrackingEnabled set to true.
bool RequiresDynamicObjectTracker[Get]

Member Functions

Gets the collection of TrackableTypes implied by this configuration.
This method provides the types of trackables that this configuration would enable. Use this in conjunction with FetchOptions.TrackableTypes and OVRAnchor.FetchAnchorsAsync(System.Collections.Generic.List<OVRAnchor>,OVRAnchor.FetchOptions,System.Action<System.Collections.Generic.List<OVRAnchor>,int>)
Parameters
trackableTypes
The list of TrackableType to populate. The list is cleared before adding any elements.
Exceptions
ArgumentNullException
Thrown if trackableTypes is null.
Generates a string representation of this TrackerConfiguration.
The returned string is intended for debugging purposes. It indicates which of the requested features are enabled and takes the form
TrackerConfiguration\<Option1=Value1, Option2=Value2, ...\>
Returns
Returns a string representation of this TrackerConfiguration.
Determines whether two TrackerConfiguration instances are equal.
Parameters
other
The other TrackerConfiguration to compare with this one.
Returns
Returns true if other is equal to this one; otherwise, false.
Determines whether an object is equal to this TrackerConfiguration.
Parameters
obj
The object to compare with this TrackerConfiguration.
Returns
Returns true if obj is an instance of an TrackerConfiguration and is equal to this one; otherwise, false.
Gets a hashcode for this TrackerConfiguration.
This method allows the TrackerConfiguration to be used as a key in a HashSet<T> or Dictionary<TKey,TValue>.
Returns
Returns a hash code for this TrackerConfiguration.

Static Member Functions

Determines whether two TrackerConfiguration instances are equal.
This is the same as comparing lhs with rhs using Equals(TrackerConfiguration).
Parameters
lhs
The TrackerConfiguration to compare with rhs .
rhs
The TrackerConfiguration to compare with lhs .
Returns
Returns true if lhs is equal to rhs ; otherwise, false.
Determines whether two TrackerConfiguration instances are not equal.
This is the same as comparing lhs with rhs using Equals(TrackerConfiguration) and negating the result.
Parameters
lhs
The TrackerConfiguration to compare with rhs .
rhs
The TrackerConfiguration to compare with lhs .
Returns
Returns false if lhs is equal to rhs ; otherwise, true.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon