こんにちは、今日はUnityのManaged Memoryサイズをスクリプトから取得する方法についてまとめていきます。
Profiler.GetMonoUsedSizeLong()
Profiler.GetMonoHeapSizeLong()
プログラム関連備忘録サイト。主にゲーム。
投稿日:
こんにちは、今日はUnityのManaged Memoryサイズをスクリプトから取得する方法についてまとめていきます。
Profiler.GetMonoUsedSizeLong()
Profiler.GetMonoHeapSizeLong()
関連記事
Unityで引数に最も近い整数を返す関数Mathf.Round
確認環境 Unity 2018.4.15f1 使い方 float num = Mathf.Round(1.2f); Debug.Log(num); float型の数値を渡すと、その値に最も近い整数値を …
以下の例ではGet-ChildItemコマンドレットを引数なしで実行、標準出力への出力をDebug.LogでUnityコンソールに出力しています。 System.Diagnostics.Process …
Unity – Consoleウィンドウにログを表示する方法まとめ
こんにちは、今日はUnityでConsoleウィンドウにログを表示する方法についてまとめていきます。 確認環境 Unity 2018.4.15f1 ログの出力 ログの出力にはUnityEngine.D …
Unityで古いプロジェクトを開いた際に表示されるAPI Update Requiredダイアログ
確認環境 Unity 2019.4.28f1 表示内容 This project contains scripts and/or assemblies that use obsolete APIs.I …
Unityで0から指定範囲の間を行き来する数値を取得できる関数Mathf.PingPong
確認環境 Unity 2018.4.15f1 使い方 public static float PingPong(float t, float length); UnityEngine.Mathfに定義 …