This version of Unity is unsupported.

GameObject.GetScene

Switch to Manual

Declaration

public static SceneManagement.Scene GetScene(int instanceID);

Parameters

instanceID The instance ID of a GameObject.

Returns

Scene Scene of GameObject of instance ID.

Description

Returns the Scene of a GameObject given by instance ID.