Language
Edit

ScaleLogic.Update Method

Definition

Calculate the new manipulation result, of type T, based on input. If the number of interactor points is different than the last time Update was called, Setup will be called automatically to re-initialize the manipulation.

public override UnityEngine.Vector3 Update(System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> interactors, UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable interactable, MixedReality.Toolkit.MixedRealityTransform currentTarget, bool centeredAnchor);
override this.Update : System.Collections.Generic.List<UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor> * UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable * MixedReality.Toolkit.MixedRealityTransform * bool -> UnityEngine.Vector3
Public Overrides Function Update (interactors As List(Of IXRSelectInteractor), interactable As IXRSelectInteractable, currentTarget As MixedRealityTransform, centeredAnchor As Boolean) As Vector3

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.

centeredAnchor
Boolean

Should the manipulationLogic anchor the object around its center, or around the manipulation?

Returns

UnityEngine.Vector3

Applies to