NativeObjectEntries
A class that houses native object data, returned by PackedMemorySnapshot.nativeObjects.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Profiling.Memory.Experimental
- Assembly: UnityEditor.CoreModule
public class NativeObjectEntries
Properties
Property | Description |
|---|---|
| flags | An array the contains the flags attached to the native memory objects referenced in the NativeObjectEntries.nativeObjectAddress array. |
| gcHandleIndex | Index of a handle inside the PackedMemorySnapshot.gcHandles array. |
| hideFlags | The hide flags attached to this native object. |
| nativeObjectAddress | An array of memory addresses that point to native C++ objects. This matches the "m_CachePtr" field of a UnityEngine.Object. |
| nativeTypeArrayIndex | An array of indexes into the PackedMemorySnapshot.nativeTypes array used to retrieve the the native C++ type description. |
| objectName | An array containing the names of the native objects. |
| rootReferenceId | An array containing the root reference ids of the native objects. Corresponds to entries in NativeRootReferenceEntries.id array. |
| size | The size in bytes of this object. |
Methods
Method | Description |
|---|---|
| GetNumEntries | Gets the number of native object entries. |