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

OVRDynamicObject Struct

Extends IEquatable< OVRDynamicObject >
Properties for a dynamic object.

Static Fields

Null : readonly OVRDynamicObject
A null representation of an OVRDynamicObject.
Use this to compare with another component to determine whether it is null.
Signature
readonly OVRDynamicObject Null

Properties

IsEnabled : bool
[Get]
True if this component is enabled and no change to its enabled status is pending.
Signature
bool IsEnabled
IsNull : bool
[Get]
Whether this object represents a valid anchor component.
Signature
bool IsNull
TrackableType : OVRAnchor.TrackableType
[Get]
The TrackableType this object represents.
A dynamic object component is used to represent a "trackable"; that is, something that can be detected in the physical environment and tracked at runtime.
Signature
OVRAnchor.TrackableType TrackableType

Methods

Equals ( other )
Compares this component for equality with other .
Signature
bool Equals(OVRDynamicObject other)
Parameters
other: OVRDynamicObject  The other component to compare with.
Returns
bool  True if both components belong to the same OVRAnchor, otherwise false.
Equals ( obj )
Compares this component for equality with obj .
Signature
override bool Equals(object obj)
Parameters
obj: object  The object to compare with.
Returns
override bool  True if obj is an OVRDynamicObject and Equals(OVRDynamicObject) is true, otherwise false.
GetHashCode ()
Gets a hashcode suitable for use in a Dictionary or HashSet.
Signature
override int GetHashCode()
Returns
override int  A hashcode for this component.
ToString ()
Gets a string representation of this component.
Signature
override string ToString()
Returns
override string  A string representation of this component.

Static Methods

operator!= ( lhs , rhs )
Compares two components for inequality.
Signature
static bool operator!=(OVRDynamicObject lhs, OVRDynamicObject rhs)
Parameters
lhs: OVRDynamicObject  The component to compare with rhs .
rhs: OVRDynamicObject  The component to compare with lhs .
Returns
bool  True if the components do not belong to the same OVRAnchor, otherwise false.
operator== ( lhs , rhs )
Compares two components for equality.
Signature
static bool operator==(OVRDynamicObject lhs, OVRDynamicObject rhs)
Parameters
lhs: OVRDynamicObject  The component to compare with rhs .
rhs: OVRDynamicObject  The component to compare with lhs .
Returns
bool  True if both components belong to the same OVRAnchor, otherwise false.