Class LocalizedTextElement
A localized text element.
Inheritance
LocalizedTextElement
Implements
INotifyValueChanged<string>
Inherited Members
TextElement.HandleEvent(EventBase)
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class LocalizedTextElement : BaseTextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement, IAdditionalDataHolder
Constructors
LocalizedTextElement()
Default constructor.
Declaration
public LocalizedTextElement()
LocalizedTextElement(string)
Constructor with a reference text.
Declaration
public LocalizedTextElement(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The reference text to use when formatting the localized string. You can also use plain text for no translation. |
Fields
ussClassName
The main USS class name of this element.
Declaration
public const string ussClassName = "appui-localized-text"
Field Value
Type | Description |
---|---|
string |
Properties
text
The reference text to use when formatting the localized string. You can also use plain text for no translation.
Declaration
public string text { get; set; }
Property Value
Type | Description |
---|---|
string |
variables
The variables to use when formatting the localized string.
Declaration
public IList<object> variables { get; set; }
Property Value
Type | Description |
---|---|
IList<object> |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>