Version: 2023.2

UnsafeUtility.IsNativeContainerType

切换到手册
public static bool IsNativeContainerType ();

返回

bool True if struct is a NativeContainer type, otherwise false.

描述

Returns whether the struct or type is a Unity NativeContainer. A NativeContainer type uses the NativeContainerAttribute attribute.