Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DetectCrossSceneReferences(Scene)

Detects cross-Scene references in a Scene.
Read time 1 minuteLast updated 21 days ago

Definition

public static bool DetectCrossSceneReferences(Scene scene)

Parameters

scene

Scene to check for cross-Scene references.

Returns

Type

Description

boolWas any cross-Scene references found.

Remarks

Warnings are logged to the console if any object in the input Scene has references to objects in other Scenes.