# SetReference(TableReference, TableEntryReference)

> Sets the table and entry references together so the reference refreshes only once.

## Definition

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

```csharp
public void SetReference(TableReference table, TableEntryReference entry)
```

### Parameters

**** (\[TableReference]\(/engine/6000.7/script-reference/unity/localization/tablereference)): The table collection to resolve the entry from.**** (\[TableEntryReference]\(/engine/6000.7/script-reference/unity/localization/tableentryreference)): The entry within the table collection to resolve.

### Remarks

Prefer this over assigning [LocalizedReference.TableReference](/engine/6000.7/script-reference/unity/localization/localizedreference/tablereference.md) and [LocalizedEntry\<TEntry>.TableEntryReference](/engine/6000.7/script-reference/unity/localization/localizedentry1/tableentryreference.md) separately, because it applies both values with a single refresh of any live listeners.

Point a reference at an entry in one call.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class LocalizedEntrySetReferenceExample
    {
        public void SetReference()
        {
            var reference = new LocalizedString();
            reference.SetReference("My Strings", "HELLO");
        }
    }
}
```
