Can I tell if an object is being destroyed because the level is unloading?

I’d like to be able to tell if an object is being destroyed because a level is being unloaded. Is this possible?

I would say no, although there might be some complicated hack to achieve the same result. Checking for null in something like OnDestroy might give you what you’re after, but generally the order in which things get destroyed is not guaranteed and there can be other reasons for an object to be null, so that’s not really a safe method.