GameObject.GetScene

Switch to Manual

Declaration

public static SceneManagement.Scene GetScene(int instanceID);

Parameters

instanceID The instance ID of the GameObject.

Returns

Scene The Scene the GameObject with the specified instance ID is part of.

Description

Retrieves the Scene which contains the GameObject with the specified instance ID.


Did you find this page useful? Please give it a rating: