UxrAvatar.SetCurrentHandPose Method
Sets the currently active pose for a given hand in the avatar at runtime. Blending is used to transition between poses smoothly, which means the pose is not immediately adopted. To adopt a pose immediately at a given instant use SetCurrentHandPoseImmediately(UxrHandSide, String, UxrBlendPoseType) instead.
Namespace: UltimateXR.Avatar
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public bool SetCurrentHandPose(
UxrHandSide handSide,
string poseName,
float blendValue = 0f,
bool propagateEvents = true
)
Parameters
- handSide
- Type: UltimateXR.Core.UxrHandSide
Which hand the new pose will be applied to - poseName
- Type: System.String
The new pose name - blendValue (Optional)
- Type: System.Single
The blend value if the pose is a blend pose - propagateEvents (Optional)
- Type: System.Boolean
Whether the change should generate events (HandPoseChanging, HandPoseChanged, [!:GlobalHandPoseChanging], [!:GlobalHandPoseChanged]).
Return Value
Type: Boolean
Whether the pose was found