Language
Edit

HandednessExtensions Class

Definition

Extension methods that make working with the Handedness enum easier.

public static class HandednessExtensions
type HandednessExtensions = class
Public Module HandednessExtensions
Inheritance
HandednessExtensions

Methods

Name Description
GetOppositeHandedness(Handedness)

Gets the opposite "hand" flag for the current Handedness value.

IsLeft(Handedness)
Obsolete.

Checks whether or not the current Handedness value is Left.

IsMatch(Handedness, Handedness)

Checks whether or not the current Handedness value matches the specified value.

IsNone(Handedness)
Obsolete.

Checks whether or not the current Handedness value is None.

IsRight(Handedness)
Obsolete.

Checks whether or not the current Handedness value is Right.

ToXRNode(Handedness)

Gets the UnityEngine.XR.XRNode representing the specified handedness. If the Handedness flags include both Left and Right, returns null.

Applies to