/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
using UnityEngine;
using UnityEngine.UI;
namespace Live2D.Cubism.Samples.AsyncBenchmark
{
///
/// Record when the frame rate falls below the set target frame rate.
///
public class FrameRateUiHolder : MonoBehaviour
{
///
/// Enable/disable observation.
///
[SerializeField]
public bool HasShownFrameRate;
///
/// Whether to enable total uptime.
///
[SerializeField]
public bool HasShownElapsedTime;
///
/// Displays the frame rate and observation time when the maximum frame rate is observed.
///
[SerializeField]
public Text HighestFrameRateUi = null;
///
/// Displays the frame rate and observation time when the minimum frame rate is observed.
///
[SerializeField]
public Text LowestFrameRateUi = null;
///
/// UI to display total benchmark uptime.
///
[SerializeField]
public Text ElapsedTimeUi = null;
}
}