Version: 2020.2
LanguageEnglish
  • C#

TypeDescription

struct in UnityEditor.MemoryProfiler

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Description of a managed type.

Properties

arrayRankIf this is an arrayType, this will return the rank of the array. (1 for a 1-dimensional array, 2 for a 2-dimensional array, etc)
assemblyName of the assembly this type was loaded from.
baseOrElementTypeIndexThe base type for this type, pointed to by an index into PackedMemorySnapshot.typeDescriptions.
fieldsAn array containing descriptions of all fields of this type.
isArrayIs this type an array?
isValueTypeIs this type a value type? (if it's not a value type, it's a reference type)
nameName of this type.
sizeSize in bytes of an instance of this type. If this type is an arraytype, this describes the amount of bytes a single element in the array will take up.
staticFieldBytesThe actual contents of the bytes that store this types static fields, at the point of time when the snapshot was taken.
typeIndexThe typeIndex of this type. This index is an index into the PackedMemorySnapshot.typeDescriptions array.
typeInfoAddressThe address in memory that contains the description of this type inside the virtual machine. This can be used to match managed objects in the heap to their corresponding TypeDescription, as the first pointer of a managed object points to its type description.