# NativeObjectEntries

> A class that houses native object data, returned by PackedMemorySnapshot.nativeObjects.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Profiling.Memory.Experimental](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental.md)
* **Assembly:** UnityEditor.CoreModule

> **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/](https://docs.unity3d.com/Packages/com.unity.memoryprofiler@latest/))

```csharp
public class NativeObjectEntries
```

## Properties

| Property                                                                                                                                      | Description                                                                                                                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [flags](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/flags.md)                               | An array the contains the flags attached to the native memory objects referenced in the [NativeObjectEntries.nativeObjectAddress](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/nativeobjectaddress.md) array. |
| [gcHandleIndex](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/gchandleindex.md)               | Index of a handle inside the [PackedMemorySnapshot.gcHandles](/engine/6000.5/script-reference/unityeditor/memoryprofiler/packedmemorysnapshot/gchandles.md) array.                                                                                             |
| [hideFlags](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/hideflags.md)                       | The hide flags attached to this native object.                                                                                                                                                                                                                 |
| [nativeObjectAddress](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/nativeobjectaddress.md)   | An array of memory addresses that point to native C++ objects. This matches the "m\_CachePtr" field of a UnityEngine.Object.                                                                                                                                   |
| [nativeTypeArrayIndex](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/nativetypearrayindex.md) | An array of indexes into the [PackedMemorySnapshot.nativeTypes](/engine/6000.5/script-reference/unityeditor/memoryprofiler/packedmemorysnapshot/nativetypes.md) array used to retrieve the the native C++ type description.                                    |
| [objectName](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/objectname.md)                     | An array containing the names of the native objects.                                                                                                                                                                                                           |
| [rootReferenceId](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/rootreferenceid.md)           | An array containing the root reference ids of the native objects. Corresponds to entries in [NativeRootReferenceEntries.id](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativerootreferenceentries/id.md) array.                 |
| [size](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/size.md)                                 | The size in bytes of this object.                                                                                                                                                                                                                              |

## Methods

| Method                                                                                                                          | Description                               |
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [GetNumEntries](/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/nativeobjectentries/getnumentries.md) | Gets the number of native object entries. |
