// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities; using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input { [Serializable] public class AnimatedCursorStateData : AnimatedCursorData { } [Serializable] public class AnimatedCursorContextData : AnimatedCursorData { } /// /// Data struct for cursor state information for the Animated Cursor, which leverages the Unity animation system. /// This defines a modification to an Unity animation parameter, based on cursor state. /// [Serializable] public class AnimatedCursorData { [SerializeField] [Tooltip("The name of this specific cursor state.")] protected string name; /// /// The name of this specific cursor state. /// public string Name => name; [SerializeField] [Tooltip("The Cursor State for this specific animation.")] protected T cursorState; /// /// The Cursor State for this specific animation. /// public T CursorState => cursorState; [SerializeField] [Tooltip("Animator parameter definition for this cursor state.")] protected AnimatorParameter parameter; /// /// Animator parameter definition for this cursor state. /// public AnimatorParameter Parameter => parameter; } }