# ResourceEntryContext

> Carries the state and callbacks a ResourceEntryDrawer needs while it builds a value cell.

## Definition

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

```csharp
public sealed class ResourceEntryContext
```

## Remarks

The window creates one of these per cell and passes it to [ResourceEntryDrawer.CreateCell](/engine/6000.7/script-reference/unity/localization/editor/resourceentrydrawer/createcell.md). Bind a field to [ResourceEntryContext.EntryProperty](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/entryproperty.md) for free undo and redo when it is set; otherwise edit the entry directly and call [ResourceEntryContext.MarkDirty](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/markdirty.md). Call [ResourceEntryContext.Rebuild](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/rebuild.md) after a change that alters the row's structure.

Additional Resources: [ResourceEntryDrawer](/engine/6000.7/script-reference/unity/localization/editor/resourceentrydrawer.md)

## Properties

| Property                                                                                                         | Description                                                                                 |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [EntryProperty](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/entryproperty.md) | The serialized array element for this entry, for binding, or `null` when it is unavailable. |
| [MarkDirty](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/markdirty.md)         | Marks the table dirty after a value change made outside a serialized-property binding.      |
| [Rebuild](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/rebuild.md)             | Rebuilds the tree after a change to the entry's structure.                                  |
| [Table](/engine/6000.7/script-reference/unity/localization/editor/resourceentrycontext/table.md)                 | The table whose locale value this cell edits.                                               |
