Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsUnmanaged

Checks whether the struct or type is unmanaged.
Read time 1 minuteLast updated 13 days ago

Definition

IsUnmanaged(Type)

Checks whether the struct or type is unmanaged.
public static bool IsUnmanaged(Type type)

Parameters

type

The
System.Type
of a struct.

Returns

Type

Description

boolTrue if
type
is unmanaged, otherwise false.

Remarks

An unmanaged type contains no managed fields, and can be freely copied in memory.

IsUnmanaged<T>()

Checks whether the struct or type is unmanaged.
public static bool IsUnmanaged<T>()

Returns

Type

Description

boolTrue if
type
is unmanaged, otherwise false.

Remarks

An unmanaged type contains no managed fields, and can be freely copied in memory.