# GetSourceValue(ISelectorInfo)

> Resolves this string so it can be read as a Smart String placeholder in another string.

## Definition

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

```csharp
public object GetSourceValue(ISelectorInfo selector)
```

### Parameters

**** (\[ISelectorInfo]\(/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iselectorinfo)): Describes the placeholder being resolved.

### Returns

| Type                                                           | Description                                                                                        |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [Object](https://learn.microsoft.com/dotnet/api/system.object) | The resolved text, or an empty string when the reference is unset or the nesting limit is reached. |

### Remarks

Add a [LocalizedString](/engine/6000.7/script-reference/unity/localization/localizedstring.md) to another string's [LocalizedString.LocalVariables](/engine/6000.7/script-reference/unity/localization/localizedstring/localvariables.md) to embed one entry inside another. The nested string reads its own variables layered over the containing string's (a chained scope). Two entries that reference each other resolve as empty and log a warning rather than recursing without end.

Additional Resources: [LocalizedString.LocalVariables](/engine/6000.7/script-reference/unity/localization/localizedstring/localvariables.md), [LocalVariablesGroup](/engine/6000.7/script-reference/unity/localization/localvariablesgroup.md)

Embed one localized string inside another as a local variable.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class LocalizedStringNestedExample
    {
        public void Nest()
        {
            var localizedString = new LocalizedString();
            localizedString.SetReference("My Strings", "TITLE");
            var nested = new LocalizedString();
            nested.SetReference("My Strings", "SUBTITLE");
            localizedString.LocalVariables.Add(nested, "subtitle");
        }
    }
}
```
