文档

Unity Engine


User Manual

Script Reference

Unity Engine


ValidateHeap()

Scans the managed heap to check for corrupted objects.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.