Class Link
A link visual element.
Inheritance
Link
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 Link : LocalizedTextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement, IAdditionalDataHolder, IPressable
Constructors
Link()
Default constructor.
Declaration
public Link()
Link(string)
Constructor.
Declaration
public Link(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text of the link. |
Link(string, string)
Constructor.
Declaration
public Link(string text, string url)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text of the link. |
string | url | The URL of the link. |
Fields
sizeUssClassName
The Link's size USS class name.
Declaration
public const string sizeUssClassName = "appui-link--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Link's USS class name.
Declaration
public const string ussClassName = "appui-link"
Field Value
Type | Description |
---|---|
string |
Properties
clickable
The clickable manipulator.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
size
The size of the link.
Declaration
public TextSize size { get; set; }
Property Value
Type | Description |
---|---|
TextSize |
url
The URL of the link.
Declaration
public string url { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetSizeUssClassName(TextSize)
Declaration
public static string GetSizeUssClassName(TextSize enumValue)
Parameters
Type | Name | Description |
---|---|---|
TextSize | enumValue |
Returns
Type | Description |
---|---|
string |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>