Modifier

Partager via


ToolTipConnector.GetDirectionFromPivotDirection Method

Definition

Computes the director of the connector

public:
 static UnityEngine::Vector3 GetDirectionFromPivotDirection(Microsoft::MixedReality::Toolkit::UI::ConnectorPivotDirection pivotDirection, UnityEngine::Vector3 manualPivotDirection, UnityEngine::Transform ^ relativeTo);
public static UnityEngine.Vector3 GetDirectionFromPivotDirection (Microsoft.MixedReality.Toolkit.UI.ConnectorPivotDirection pivotDirection, UnityEngine.Vector3 manualPivotDirection, UnityEngine.Transform relativeTo);
static member GetDirectionFromPivotDirection : Microsoft.MixedReality.Toolkit.UI.ConnectorPivotDirection * UnityEngine.Vector3 * UnityEngine.Transform -> UnityEngine.Vector3
Public Shared Function GetDirectionFromPivotDirection (pivotDirection As ConnectorPivotDirection, manualPivotDirection As Vector3, relativeTo As Transform) As Vector3

Parameters

pivotDirection
ConnectorPivotDirection

enum describing director of connector pivot

manualPivotDirection
UnityEngine.Vector3

is the pivot set manually

relativeTo
UnityEngine.Transform

Transform that describes the frame of reference of the pivot

Returns

UnityEngine.Vector3

a vector describing the pivot direction in world space

Applies to