Version: 2020.1
言語: 日本語
public static void EndSample ();

説明

Ends the current profiling sample.

The Profiler displays samples in its Hierarchy and Timeline views.

using UnityEngine;
using System.Collections;
using UnityEngine.Profiling;

public class ExampleClass : MonoBehaviour { void Example() { Profiler.BeginSample("MyPieceOfCode"); // Code to measure... Profiler.EndSample(); } }

関連項目: Profiler.BeginSample, Profiler.