기술 자료

Unity Engine

Unity Engine

GetScene(int)

Retrieves the Scene which contains the GameObject with the specified instance ID.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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.