# EventInterestOptions

> Options used as arguments for EventInterestAttribute when the affected method treats events in a general, non type-specific manner.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum EventInterestOptions
```

## Fields

| Value                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AllEventTypes](/engine/6000.3/script-reference/unityengine/uielements/eventinterestoptions/alleventtypes.md) | Use the [EventInterestOptions.AllEventTypes](/engine/6000.3/script-reference/unityengine/uielements/eventinterestoptions/alleventtypes.md) option when the method with an [EventInterestAttribute](/engine/6000.3/script-reference/unityengine/uielements/eventinterestattribute.md) doesn't have a specific filter for the event types it uses, or wants to receive all possible event types. For example, a class that overrides [CallbackEventHandler.HandleEventBubbleUp](/engine/6000.3/script-reference/unityengine/uielements/callbackeventhandler/handleeventbubbleup.md) and logs a message every time an event of any kind is received would require this option. |
| [Inherit](/engine/6000.3/script-reference/unityengine/uielements/eventinterestoptions/inherit.md)             | Use the [EventInterestOptions.Inherit](/engine/6000.3/script-reference/unityengine/uielements/eventinterestoptions/inherit.md) option when only the events needed by the base class are required. For example, a class that overrides the [CallbackEventHandler.HandleEventBubbleUp](/engine/6000.3/script-reference/unityengine/uielements/callbackeventhandler/handleeventbubbleup.md) method and checks if an enabled flag is active before calling its base.ExecuteDefaultActionAtTarget method would use this option.                                                                                                                                                  |
