Language
Edit

RotateLogic.Setup Method

Definition

Setup the manipulation logic. Called automatically by Update if the number of interactor points has changed.

public override void Setup(System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> interactors, UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable interactable, MixedReality.Toolkit.MixedRealityTransform currentTarget);
override this.Setup : System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> * UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable * MixedReality.Toolkit.MixedRealityTransform -> unit
Public Overrides Sub Setup (interactors As List(Of IXRSelectInteractor), interactable As IXRSelectInteractable, currentTarget As MixedRealityTransform)

Parameters

interactors
List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor>

List of all UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor objects selecting this object.

interactable
UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable

The UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable that is being manipulated.

currentTarget
MixedRealityTransform

The current manipulation target position/rotation/scale. This is the shared target that each ManipulationLogic modifies. The result from Update will be applied to this transform by the ObjectManipulator, in the order of Scale, Rotate, Move.

Applies to