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

ObjectFlags.IsDontDestroyOnLoad

切换到手册

描述

指定将该对象标记为 DontDestroyOnLoad。