#if ENABLE_CLOUD_SERVICES_ANALYTICS || UNITY_2023_2_OR_NEWER
using System;
using UnityEngine;
namespace UnityEditor.XR.Interaction.Toolkit.Analytics
{
///
/// Information about the modality for either the left or right hand/controller in the XR Input Modality Manager component.
/// Contains modality durations for the play mode analytics payload.
///
[Serializable]
struct ModalityRuntimeData
{
///
/// Whether the hand GameObject is assigned in the XR Input Modality Manager component.
///
[SerializeField]
public bool handAssigned;
///
/// Whether the controller GameObject is assigned in the XR Input Modality Manager component.
///
[SerializeField]
public bool controllerAssigned;
///
/// How long neither modality was active during play mode.
///
[SerializeField]
public float noneDurationSeconds;
///
/// How long the tracked hand modality was active during play mode.
///
[SerializeField]
public float trackedHandDurationSeconds;
///
/// How long the motion controller modality was active during play mode.
///
[SerializeField]
public float motionControllerDurationSeconds;
}
}
#endif