Version: 2022.3

ChangeGameObjectStructureEventArgs

struct in UnityEditor

切换到手册

描述

A change of this type indicates that the structure of a GameObject has changed. This happens when a component is added to or removed from the GameObject using Undo.AddComponent or Undo.DestroyObjectImmediate.

Note that multiple changes to the structure (e.g. multiple components added) may be represented by a single event.

变量

instanceIdThe instance ID of the GameObject that has been changed.
sceneThe Scene containing the GameObject that has been changed.

构造函数

ChangeGameObjectStructureEventArgsConstructs a new instance.