文档

Unity Engine

Unity Engine

GetEventType(int)

Returns the type of the event at the specified index.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public ObjectChangeKind GetEventType(int eventIdx)

Parameters

eventIdx

The index of the event whose type should be returned.

Returns

Type

Description

ObjectChangeKindThe type of the event at the specified index.

Remarks

Use this function to query the type of an event before using any of the other functions (e.g. GetChangeAssetObjectEvent) to retrieve the event data.