// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.UI.UnityInputModule.Controls;
using UnityEngine;
using UnityEngine.UI;
namespace UltimateXR.UI.UnityInputModule
{
///
/// Graphic component that can be used together with on a UI element that has no
/// attached. It is useful to handle input on controls that need to graphic rendering, in order
/// to save performance.
///
[RequireComponent(typeof(CanvasRenderer))]
public class UxrNonDrawingGraphic : Graphic
{
#region Public Overrides Graphic
///
public override void SetMaterialDirty()
{
}
///
public override void SetVerticesDirty()
{
}
#endregion
#region Event Trigger Methods
///
protected override void OnPopulateMesh(VertexHelper vh)
{
vh.Clear();
}
#endregion
}
}