EditorSceneManager.DetectCrossSceneReferences

Switch to Manual
public static bool DetectCrossSceneReferences (SceneManagement.Scene scene);

Parameters

sceneScene to check for cross-Scene references.

Returns

bool Was any cross-Scene references found.

Description

Detects cross-Scene references in a Scene.

如果输入场景的任何对象引用了其他场景中的对象,则控制台中会记录警告。