您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
902 B

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