# ObjectFlags

> Flags that can be set on a Native Object.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor.Profiling.Memory.Experimental](/engine/6000.7/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
[Flags]
public enum ObjectFlags
```

## Fields

| Value                                                                                                                               | Description                                               |
| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [IsDontDestroyOnLoad](/engine/6000.7/script-reference/unityeditor/profiling/memory/experimental/objectflags/isdontdestroyonload.md) | Specifies that the object is marked as DontDestroyOnLoad. |
| [IsManager](/engine/6000.7/script-reference/unityeditor/profiling/memory/experimental/objectflags/ismanager.md)                     | Specifies that the object is marked as a manager.         |
| [IsPersistent](/engine/6000.7/script-reference/unityeditor/profiling/memory/experimental/objectflags/ispersistent.md)               | Specifies that the object is set as persistent.           |
