Version: 2022.3

CreateGameObjectHierarchyEventArgs

struct in UnityEditor

切换到手册

描述

A change of this type indicates that a GameObject has been created, possibly with additional objects below it in the hierarchy. This happens for example when Undo.RegisterCreatedObjectUndo is used with a GameObject.

变量

instanceIdThe instance ID of the GameObject that has been created.
sceneThe scene containing the GameObject that has been created.

构造函数

CreateGameObjectHierarchyEventArgsConstructs a new instance.