# IsPersistent(ObjectFlags)

> True if the object is marked as Persistent, otherwise false.

## Definition

* **Type:** Method
* **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 static bool IsPersistent(this ObjectFlags flags)
```

### Parameters

**** (\[ObjectFlags]\(/engine/6000.5/script-reference/unityeditor/profiling/memory/experimental/objectflags)): The ObjectFlags to operate on (accessible via this).

### Returns

| Type                                                          | Description                                                                          |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the object associated with this ObjectFlags is marked as Persistent. |
