Class IconBadge
Implements
Inherited Members
Namespace: UnityEditor.Experimental.UIElements.GraphView
Assembly: UnityEditor.dll
Syntax
public class IconBadge : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyleConstructors
| Improve this Doc View SourceIconBadge()
Declaration
public IconBadge()IconBadge(VisualTreeAsset)
Declaration
public IconBadge(VisualTreeAsset template)Parameters
| Type | Name | Description | 
|---|---|---|
| VisualTreeAsset | template | 
Properties
| Improve this Doc View Sourcealignment
Declaration
protected SpriteAlignment alignment { get; set; }Property Value
| Type | Description | 
|---|---|
| SpriteAlignment | 
badgeText
Declaration
public string badgeText { get; set; }Property Value
| Type | Description | 
|---|---|
| String | 
distance
Declaration
public StyleValue<int> distance { get; set; }Property Value
| Type | Description | 
|---|---|
| StyleValue<Int32> | 
target
Declaration
protected VisualElement target { get; set; }Property Value
| Type | Description | 
|---|---|
| VisualElement | 
Methods
| Improve this Doc View SourceAttachTo(VisualElement, SpriteAlignment)
Declaration
public void AttachTo(VisualElement target, SpriteAlignment align)Parameters
| Type | Name | Description | 
|---|---|---|
| VisualElement | target | |
| SpriteAlignment | align | 
CreateComment(String)
Declaration
public static IconBadge CreateComment(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| String | message | 
Returns
| Type | Description | 
|---|---|
| IconBadge | 
CreateError(String)
Declaration
public static IconBadge CreateError(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| String | message | 
Returns
| Type | Description | 
|---|---|
| IconBadge | 
Detach()
Declaration
public void Detach()ExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)Parameters
| Type | Name | Description | 
|---|---|---|
| EventBase | evt | 
Overrides
| Improve this Doc View SourceOnStyleResolved(ICustomStyle)
Declaration
protected override void OnStyleResolved(ICustomStyle elementStyle)Parameters
| Type | Name | Description | 
|---|---|---|
| ICustomStyle | elementStyle |