mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-03-26 20:34:59 -05:00
21 lines
366 B
C#
21 lines
366 B
C#
using System;
|
|
using UnityEngine.Profiling;
|
|
|
|
namespace SphereTriangle
|
|
{
|
|
public struct ProfileSample : IDisposable
|
|
{
|
|
string _name;
|
|
|
|
public ProfileSample(string name)
|
|
{
|
|
_name = name;
|
|
Profiler.BeginSample(name);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Profiler.EndSample();
|
|
}
|
|
}
|
|
} |