Version: 2021.3

DestroyGameObjectHierarchyEventArgsConstructor

切换到手册
public DestroyGameObjectHierarchyEventArgs (int instanceId, SceneManagement.Scene scene);
public DestroyGameObjectHierarchyEventArgs (int instanceId, int parentInstanceId, SceneManagement.Scene scene);

参数

instanceId The instance ID of the GameObject that has been destroyed.
parentInstanceId The instance ID for the parent GameObject of the GameObject that has been destroyed.
scene The Scene containing the GameObject that has been destroyed.

描述

Constructs a new instance.