以下の内容はhttps://baba-s.hatenablog.com/entry/2018/01/10/205405より取得しました。


【Unity】Unity 2018.1.0b2 新機能「Profiler.GetAllocatedMemoryForGraphicsDriver」

はじめに

Unity 2018.1.0b2 の新機能の
「Profiler.GetAllocatedMemoryForGraphicsDriver」を使用することで
グラフィックスドライバの割り当てメモリ量をバイト数で取得することができます

使用例

using UnityEngine;
using UnityEngine.Profiling;

public class Example : MonoBehaviour
{
    private void Awake()
    {
        var result = Profiler.GetAllocatedMemoryForGraphicsDriver();
        print( result );
    }
}

関連記事




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

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