Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetEventType(int)

Returns the type of the event at the specified index.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.