24 lines
618 B
C#

namespace UnityEngine.XR.Content.Interaction.Analytics
{
/// <summary>
/// Class that manages scene analytics events for <c>XRContent</c>.
/// </summary>
[AddComponentMenu("")]
[DisallowMultipleComponent]
public class XrcSceneAnalytics : MonoBehaviour
{
void Awake()
{
XrcAnalytics.interactionEvent.Send(new SceneStarted());
}
#if UNITY_EDITOR
void OnValidate()
{
gameObject.hideFlags = UnityEditor.Unsupported.IsDeveloperMode() ? HideFlags.None : HideFlags.HideInHierarchy | HideFlags.NotEditable;
}
#endif
}
}