文档

Unity Engine

Unity Engine

ChangeGameObjectOrComponentPropertiesEventArgs

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

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

ChangeGameObjectOrComponentPropertiesEventArgs(EntityId, Scene)

Constructs a new instance.
public ChangeGameObjectOrComponentPropertiesEventArgs(EntityId entityId, Scene scene)

Parameters

entityId


scene

The Scene that contains the GameObject associated with the change. If a Component is changed, this is the GameObject to which the component belongs.

ChangeGameObjectOrComponentPropertiesEventArgs(int, Scene)

Constructs a new instance.
警告
Removed. ChangeGameObjectOrComponentPropertiesEventArgs(int instanceId, Scene scene) is deprecated. Use ChangeGameObjectOrComponentPropertiesEventArgs(EntityId entityId, Scene scene) instead.
public ChangeGameObjectOrComponentPropertiesEventArgs(int instanceId, Scene scene)

Parameters

instanceId

The instance ID of the modified GameObject or Component.

scene

The Scene that contains the GameObject associated with the change. If a Component is changed, this is the GameObject to which the component belongs.