namespace UnityEngine.Perception.GroundTruth
{
///
/// PerceptionUpdater is automatically spawned when the player starts and is used to coordinate and maintain
/// static perception lifecycle behaviours.
///
[AddComponentMenu("")]
[DefaultExecutionOrder(5)]
class PerceptionUpdater : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void Initialize()
{
var updaterObject = new GameObject("PerceptionUpdater");
updaterObject.AddComponent();
updaterObject.hideFlags = HideFlags.HideAndDontSave;
DontDestroyOnLoad(updaterObject);
}
void LateUpdate()
{
LabelManager.singleton.RegisterPendingLabels();
DatasetCapture.SimulationState?.Update();
}
}
}