# CreateVariantField(IAssetEntry, string, ResourceTable)

> Builds the field that edits one variant value of the entry.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Editor](/engine/6000.7/script-reference/unity/localization/editor.md)
* **Assembly:** UnityEditor

```csharp
VisualElement CreateVariantField(IAssetEntry entry, string variantKey, ResourceTable table)
```

### Parameters

**** (\[IAssetEntry]\(/engine/6000.7/script-reference/unity/localization/iassetentry)): The asset entry to edit.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The variant key the field edits.**** (\[ResourceTable]\(/engine/6000.7/script-reference/unity/localization/resourcetable)): The table that owns the entry, used for undo and dirtying.

### Returns

| Type                                                                                     | Description                                      |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [VisualElement](/engine/6000.7/script-reference/unityengine/uielements/visualelement.md) | The visual element that edits the variant value. |
