Unity 6.3
0 онлайн 67 гостей 3 в системе
Вход

Profiler.EndSample

Declaration

public static void EndSample();

Описание

Завершает текущий образец профилирования.

Profiler отображает образцы в представлениях Hierarchy и Timeline.

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,.