# SetEventWithLimitPriority(string, AnalyticsEventPriority, int)

> Use the API to set the event property. Note: This API is for internal use only and is likely change in the future. Do not use in user code.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Deprecated.** Editor Analytics APIs have changed significantly, please see: [https://docs.editor-data.unity3d.com/Contribute/EditorAnalytics/cs\_guide/](https://docs.editor-data.unity3d.com/Contribute/EditorAnalytics/cs_guide/)

```csharp
public static AnalyticsResult SetEventWithLimitPriority(string eventName, AnalyticsEventPriority eventPriority, int ver)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the event.**** (AnalyticsEventPriority): Event priority.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Event version number.

### Returns

| Type            | Description |
| --------------- | ----------- |
| AnalyticsResult |             |
