Version: 2023.2

Utils.ValidateHeap

切换到手册
public static void ValidateHeap ();

描述

Scans the managed heap to check for corrupted objects.

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.