Struct XRGestureSubsystemDescriptor.Cinfo
Used in conjunction with RegisterDescriptor(XRGestureSubsystemDescriptor.Cinfo) to register a provider. This should only be used by subsystem implementors.
Namespace: UnityEngine.XR.InteractionSubsystems
Syntax
public struct Cinfo : IEquatable<XRGestureSubsystemDescriptor.Cinfo>
Properties
id
The string used to identify this subsystem implementation. This will be available when enumerating the available descriptors at runtime.
Declaration
public string id { readonly get; set; }
Property Value
Type | Description |
---|---|
String |
providerType
Specifies the provider implementation type to use for instantiation.
Declaration
public Type providerType { readonly get; set; }
Property Value
Type | Description |
---|---|
Type | The provider implementation type to use for instantiation. |
subsystemImplementationType
The Type
of the implementation.
Declaration
[Obsolete("XRGestureSubsystemDescriptor no longer supports the deprecated set of base classes for subsystems as of Unity 2020.2. Use providerType and, optionally, subsystemTypeOverride instead.", true)]
public Type subsystemImplementationType { readonly get; set;
}
Property Value
Type | Description |
---|---|
Type |
subsystemTypeOverride
Specifies the XRGestureSubsystemDescriptor
-derived type that forwards casted calls to its provider.
Declaration
public Type subsystemTypeOverride { readonly get; set; }
Property Value
Type | Description |
---|---|
Type | The type of the subsystem to use for instantiation. If null, |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(XRGestureSubsystemDescriptor.Cinfo)
Equivalency test
Declaration
public bool Equals(XRGestureSubsystemDescriptor.Cinfo other)
Parameters
Type | Name | Description |
---|---|---|
XRGestureSubsystemDescriptor.Cinfo | other | Object instance to test against |
Returns
Type | Description |
---|---|
Boolean | true if equal. false otherwise. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Operators
Equality(XRGestureSubsystemDescriptor.Cinfo, XRGestureSubsystemDescriptor.Cinfo)
Equivalency test against two Cinfo
instances
Declaration
public static bool operator ==(XRGestureSubsystemDescriptor.Cinfo lhs, XRGestureSubsystemDescriptor.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRGestureSubsystemDescriptor.Cinfo | lhs | First object instance to test against |
XRGestureSubsystemDescriptor.Cinfo | rhs | Second object instance to test against |
Returns
Type | Description |
---|---|
Boolean | true if equal. false otherwise. |
Inequality(XRGestureSubsystemDescriptor.Cinfo, XRGestureSubsystemDescriptor.Cinfo)
Inequality test against two Cinfo
instances
Declaration
public static bool operator !=(XRGestureSubsystemDescriptor.Cinfo lhs, XRGestureSubsystemDescriptor.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRGestureSubsystemDescriptor.Cinfo | lhs | First object instance to test against |
XRGestureSubsystemDescriptor.Cinfo | rhs | Second object instance to test against |
Returns
Type | Description |
---|---|
Boolean | true if NOT equal. false otherwise. |