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

ObjectFlagsExtensions.IsDontDestroyOnLoad

切换到手册
public static bool IsDontDestroyOnLoad (MemoryProfiler.PackedNativeUnityEngineObject.ObjectFlags flags);

参数

flags 要用作计算操作数的 ObjectFlags(可通过 this 访问)。

返回

bool 如果与此 ObjectFlags 关联的对象标记为 DontDestroyOnLoad,则返回 true。

描述

如果该对象标记为 DontDestroyOnLoad,则为 true;否则为 false。


Did you find this page useful? Please give it a rating: