Class BaseThreadAttachment
Abstract base class for custom thread attachments.
Inheritance
BaseThreadAttachment
Implements
Inherited Members
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 abstract class BaseThreadAttachment : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IThreadAttachment
Constructors
BaseThreadAttachment()
Default constructor.
Declaration
protected BaseThreadAttachment()
Fields
iconUssClassName
The BaseThreadAttachment icon styling class.
Declaration
public const string iconUssClassName = "appui-thread-attachment__icon"
Field Value
| Type | Description |
|---|---|
| string |
nameLabelUssClassName
The BaseThreadAttachment name label styling class.
Declaration
public const string nameLabelUssClassName = "appui-thread-attachment__name"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The BaseThreadAttachment main styling class.
Declaration
public const string ussClassName = "appui-thread-attachment"
Field Value
| Type | Description |
|---|---|
| string |
Properties
attachmentIcon
The icon name for the attachment.
Declaration
public abstract string attachmentIcon { get; }
Property Value
| Type | Description |
|---|---|
| string |
attachmentName
The name of the attachment.
Declaration
public abstract string attachmentName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
RefreshAttachment()
Refreshes the attachment display with current values.
Declaration
protected void RefreshAttachment()