GetScene
Retrieves the Scene which contains the GameObject with the specified instance ID.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetScene(EntityId)
Retrieves the Scene which contains the GameObject with the specified instance ID.
public static Scene GetScene(EntityId entityId)
Parameters
Returns
Type | Description |
|---|---|
| Scene | The Scene the GameObject with the specified instance ID is part of. |
GetScene(int)
Retrieves the Scene which contains the GameObject with the specified instance ID.
public static Scene GetScene(int instanceID)
Parameters
The instance ID of the GameObject.
Returns
Type | Description |
|---|---|
| Scene | The Scene the GameObject with the specified instance ID is part of. |