文档

Unity Engine

Unity Engine

DestroyGameObjectHierarchyEventArgs

Constructs a new instance.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor

DestroyGameObjectHierarchyEventArgs(int, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(int instanceId, Scene scene)

Parameters

instanceId

The instance ID of the GameObject that has been destroyed.

scene

The Scene containing the GameObject that has been destroyed.

DestroyGameObjectHierarchyEventArgs(int, int, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(int instanceId, int parentInstanceId, Scene scene)

Parameters

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.