Experimental: this API is experimental and might be changed or removed in the future.

ObjectFlagsExtensions.IsDontDestroyOnLoad

Switch to Manual
public static bool IsDontDestroyOnLoad (MemoryProfiler.PackedNativeUnityEngineObject.ObjectFlags flags);

Parameters

flagsThe ObjectFlags to compute from (accessible via this).

Returns

bool Returns true if the object associated with this ObjectFlags is marked as DontDestroyOnLoad.

Description

True if the object is marked as DontDestroyOnLoad; otherwise false.