Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeObjectEntries

A class that houses native object data, returned by PackedMemorySnapshot.nativeObjects.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. This API is outdated and will be removed. Please check out the Memory Profiler Package (https://docs.unity3d.com/Packages/com.unity.memoryprofiler@latest/)
public class NativeObjectEntries

Properties

Property

Description

flagsAn array the contains the flags attached to the native memory objects referenced in the NativeObjectEntries.nativeObjectAddress array.
gcHandleIndexIndex of a handle inside the PackedMemorySnapshot.gcHandles array.
hideFlagsThe hide flags attached to this native object.
nativeObjectAddressAn array of memory addresses that point to native C++ objects. This matches the "m_CachePtr" field of a UnityEngine.Object.
nativeTypeArrayIndexAn array of indexes into the PackedMemorySnapshot.nativeTypes array used to retrieve the the native C++ type description.
objectNameAn array containing the names of the native objects.
rootReferenceIdAn array containing the root reference ids of the native objects. Corresponds to entries in NativeRootReferenceEntries.id array.
sizeThe size in bytes of this object.

Methods

Method

Description

GetNumEntriesGets the number of native object entries.