Content-Length: 20400 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Profiling.Recorder.Get.html
| Parameter | Description |
|---|---|
| samplerName | Sampler name. |
Recorder Recorder object for the specified Sampler.
Use this function to get a Recorder for the specific Profiler label.
using UnityEngine; using UnityEngine.Profiling;
public class ExampleClass : MonoBehaviour { Recorder behaviourUpdateRecorder; void Start() { behaviourUpdateRecorder = Recorder.Get("BehaviourUpdate"); behaviourUpdateRecorder.enabled = true; }
void Update() { if (behaviourUpdateRecorder.isValid) Debug.Log("BehaviourUpdate time: " + behaviourUpdateRecorder.elapsedNanoseconds); } }
Additional resources: Sampler, Sampler.GetRecorder.
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Profiling.Recorder.Get.html
Alternative Proxies: