Created
October 28, 2018 15:34
-
-
Save baobao/ee6954cbe2940c42ba85143994e6fa2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Profiling; | |
public class ReorderTest:MonoBehaviour | |
{ | |
Recorder _cameraRenderRecorder; | |
void Start () | |
{ | |
// Camera.RenderのRecorderインスタンスを生成 | |
_cameraRenderRecorder = Recorder.Create("Camera.Render"); | |
} | |
void Update () | |
{ | |
if (_cameraRenderRecorder.isValide) | |
{ | |
// 処理をナノ秒で出力 | |
Debug.Log(_cameraRenderRecorder.elapsedNanoseconds); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment