UniVRM/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/SphereTriangle/ProfileSample.cs
2024-11-26 15:38:47 +09:00

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();
}
}
}