文档

Unity Engine

Unity Engine

GetScene(int)

Retrieves the Scene which contains the GameObject with the specified instance ID.
阅读时间1 分钟最后更新于 1 天前

Definition

public static Scene GetScene(int instanceID)

Parameters

instanceID

The instance ID of the GameObject.

Returns

Type

Description

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