UnsafeUtility.IsValidAllocator

public static bool IsValidAllocator(Unity.Collections.Allocator allocator);

Description 描述

Returns true if the allocator label is valid and can be used to allocate or deallocate memory.