Version: 2023.2
public static SceneManagement.Scene GetScene (int instanceID);

参数

instanceID The instance ID of a GameObject.

返回

Scene Scene of GameObject of instance ID.

描述

Returns the Scene of a GameObject given by instance ID.