Language
Edit

ManipulationLogic<T>.Setup Method

Definition

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

public virtual void Setup(System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> interactors, UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable interactable, MixedReality.Toolkit.MixedRealityTransform currentTarget);
abstract member Setup : System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> * UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable * MixedReality.Toolkit.MixedRealityTransform -> unit
override this.Setup : System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> * UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable * MixedReality.Toolkit.MixedRealityTransform -> unit
Public Overridable 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