以下の内容はhttps://baba-s.hatenablog.com/entry/2020/03/04/124500より取得しました。


【Unity】CustomSampler を using で使用できるようにするクラス

ソースコード

使用例

通常

using UnityEngine;
using UnityEngine.Profiling;

public class Example : MonoBehaviour
{
    private void Update()
    {
        var sampler = CustomSampler.Create( "AAAAA" );
        sampler.Begin();

        // ...

        sampler.End();
    }
}

CustomSamplerScope

using UnityEngine;

public class Example : MonoBehaviour
{
    private void Update()
    {
        using ( new CustomSamplerScope( "AAAAA" ) )
        {
            // ...
        }
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2020/03/04/124500より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14