Editar

Compartilhar via


SimulatedHandData.Update Method

Definition

Replace the hand data with the given values.

public:
 bool Update(bool isTrackedNew, bool isPinchingNew, Microsoft::MixedReality::Toolkit::Input::SimulatedHandData::HandJointDataGenerator ^ generator);
public bool Update (bool isTrackedNew, bool isPinchingNew, Microsoft.MixedReality.Toolkit.Input.SimulatedHandData.HandJointDataGenerator generator);
member this.Update : bool * bool * Microsoft.MixedReality.Toolkit.Input.SimulatedHandData.HandJointDataGenerator -> bool
Public Function Update (isTrackedNew As Boolean, isPinchingNew As Boolean, generator As SimulatedHandData.HandJointDataGenerator) As Boolean

Parameters

isTrackedNew
Boolean

True if the hand is currently tracked.

isPinchingNew
Boolean

True if the hand is in a pinching pose that causes a "Select" action.

generator
SimulatedHandData.HandJointDataGenerator

Generator function that produces joint positions and rotations. The joint data generator is only used when the hand is tracked.

Returns

True if the hand data has been changed.

Remarks

The timestamp of the hand data will be the current time, see DateTime.UtcNow.

Applies to