Returns the size of the mono heap.
function Update() { #if ENABLE_PROFILER Debug.Log("Allocated Mono heap size" + Profiler.GetMonoHeapSize() + "Bytes"); #endif }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { }
import UnityEngine import System.Collections public class Example(MonoBehaviour): pass