ValidateHeap()
Scans the managed heap to check for corrupted objects.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Diagnostics
- Assembly: UnityEngine.CoreModule
public static void ValidateHeap()
Remarks
This function only works when you use the Mono scripting backend. If this function discovers a corrupted object, the editor log displays a callstack and the Editor crashes, either through a fatal native assert or an access violation within Mono. Use this function to find memory corruption closer to when it occurs.