文档

Unity Engine

Unity Engine

BlackboardField

GraphElement that represents a field of a Graph.
阅读时间10 分钟最后更新于 1 个月前

Definition

public class BlackboardField : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable

Constructors

Constructor

Description

BlackboardField()Constructs a BlackboardField.
BlackboardField(UnityEngine.Texture,System.String,System.String)Constructs a BlackboardField.

Properties

Property

Description

blackboardThe Blackboard that the field belongs to.
highlightedThe highlighted state of this BlackboardField.
iconThe icon of this BlackboardField.
textThe text of this BlackboardField.
typeTextThe text that displays the data type of this BlackboardField.

Methods

Method

Description

BuildFieldContextualMenuCalled when the BlackboardField is asked to display the contextual menu.
HandleEventBubbleUpExecutes logic on this element during the BubbleUp phase, immediately before this element's BubbleUp callbacks. Calling StopPropagation will prevent further invocations of this method along the propagation path.
OpenTextEditorOpens a TextField to edit the text in a BlackboardField.

Inheritance

Inherited Members