class in UnityEditor.Experimental.GraphView
/
다음으로부터 상속:Experimental.GraphView.Node
The TokenNode class includes methods for creating and managing a Node that resembles a capsule. The TokenNode class includes a title, an icon, one input Port, and one output Port.
highlighted | Returns whether the TokenNode is highlighted. |
icon | The icon of the TokenNode. |
input | The input Port of the TokenNode. |
output | The output Port of the TokenNode. |
TokenNode | Constructs a TokenNode with both input and output Ports. |
capabilities | The GraphElement's capabilities. |
elementTypeColor | The color used for the MiniMap view. |
layer | The GraphElement's layer in the graph. |
selected | True if the GraphElement is currently selected. |
showInMiniMap | Whether the element is shown in the minimap. |
title | The GraphElement's title. |
expanded | Is node expanded. |
extensionContainer | Empty container used to display custom elements. After adding elements, call RefreshExpandedState in order to toggle this container visibility. |
inputContainer | Input container used for input ports. |
mainContainer | Main container that includes all other containers. |
outputContainer | Outputs container, used for output ports. |
title | Node's title element. |
titleButtonContainer | Title bar button container. Contains the top right buttons. |
titleContainer | Title bar container. |
topContainer | Entire top area containing input and output containers. |
GetGlobalCenter | Get the GraphElement's center point. |
GetPosition | Get the GraphElement position. |
HitTest | See if point is over the GraphElement. |
IsAscendable | Checks if the GraphElement is automatically brought to front when selected. |
IsCopiable | Checks whether the GraphElement is copiable. |
IsDroppable | The GraphElement is drag&droppable. |
IsGroupable | Checks whether the GraphElement is groupable. |
IsMovable | The GraphElement is movable. |
IsRenamable | The GraphElement is renamable. |
IsResizable | The GraphElement is resizable. |
IsSelectable | The GraphElement is selectable. |
IsSelected | The GraphElement is currently selected in specific container. |
IsSnappable | Checks whether the GraphElement is snappable. |
IsStackable | Checks whether the GraphElement is stackable. |
OnSelected | Called when the GraphElement is selected. |
OnUnselected | Called when the GraphElement is unselected. |
ResetLayer | Reset the GraphElement to its original layer. |
Select | Select the GraphElement. |
SetPosition | Set the GraphElement position. |
Unselect | Deselect the GraphElement. |
BuildContextualMenu | Add menu items to the node contextual menu. |
CollectElements | Retrieves the set of edges that match a specified condition. The tested edges are connected to this node. |
InstantiatePort | Create a new port specific to this node. |
RefreshExpandedState | After adding custom elements to the extensionContainer, call this method in order for them to become visible. |
RefreshPorts | Refresh the layout of the ports. |
SetPosition | Set node position. |
OnCustomStyleResolved | Called when the custom style properties are resolved. |
OnPortRemoved | Called when port is remove. |
ToggleCollapse | Toggle node's collapse state. |
UseDefaultStyling | Applies the default styling of Node. This must be explicitly called by Node subclasses that use their own uxml files. |