StageUtility.GetStageHandle

public static SceneManagement.StageHandle GetStageHandle(GameObject gameObject);

Parameters

gameObjectThe GameObject to find the stage of.

Returns

StageHandle The stage of the GameObject.

Description 描述

Get the stage in which the given GameObject exists.


public static SceneManagement.StageHandle GetStageHandle(SceneManagement.Scene scene);

Parameters

sceneThe Scene to find the stage of.

Returns

StageHandle The stage of the Scene.

Description 描述

Get the stage in which the given Scene exists.