| Custom Input Sources |
This section contains information about overriding the input source for HyperText components.
This topic contains the following sections:
While text can be assigned directly to a HyperText instance just like the built-in Text component, HyperText components also allow the specification of custom input sources of text data. This feature potentially allows a HyperText instance to have multiple different possible text values, which can enable features like making run-time localization adjustments without the need for separate prefabs.

The HyperText component exposes the InputTextSource property, which accepts any object that implements the ITextSource interface. Any custom asset or component types that implement this interface can also be assigned to the HyperText component via the inspector, immediately below the Text input field. Any other custom type can be assigned at run-time.

The included LocalizableText asset type demonstrates one application of the ITextSource interface. It allows you to specify a default string, as well as alternate strings keyed to different locale codes. The current locale can be updated at run-time, and any HyperText instance using the asset as an input source will be synchronized.