// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using System;
using UltimateXR.Core;
using UltimateXR.Manipulation.HandPoses;
namespace UltimateXR.Avatar
{
///
/// Event args for a hand pose change in an .
///
public class UxrAvatarHandPoseChangeEventArgs : EventArgs
{
#region Public Types & Data
///
/// Gets which hand the event belongs to.
///
public UxrHandSide HandSide { get; }
///
/// Gets the name of the pose to change to.
///
public string PoseName { get; }
///
/// Gets the new blend value if the pose type is .
///
public float BlendValue { get; }
#endregion
#region Constructors & Finalizer
///
/// Constructor.
///
/// Which hand the event belongs to
/// Name of the pose to change to
/// New blend value
public UxrAvatarHandPoseChangeEventArgs(UxrHandSide handSide,
string poseName = "",
float blendValue = 0.0f)
{
HandSide = handSide;
PoseName = poseName;
BlendValue = blendValue;
}
#endregion
#region Public Overrides object
///
public override string ToString()
{
return $"Hand pose changed (Hand={HandSide}, PoseName={PoseName}, BlendValue={BlendValue})";
}
#endregion
}
}