Version: 2021.3
언어: 한국어
Experimental: this API is experimental and might be changed or removed in the future.

TokenNode

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.

변수

highlightedReturns whether the TokenNode is highlighted.
iconThe icon of the TokenNode.
inputThe input Port of the TokenNode.
outputThe output Port of the TokenNode.

생성자

TokenNodeConstructs a TokenNode with both input and output Ports.

상속된 멤버

변수

capabilitiesThe GraphElement's capabilities.
elementTypeColorThe color used for the MiniMap view.
layerThe GraphElement's layer in the graph.
selectedTrue if the GraphElement is currently selected.
showInMiniMapWhether the element is shown in the minimap.
titleThe GraphElement's title.
expandedIs node expanded.
extensionContainerEmpty container used to display custom elements. After adding elements, call RefreshExpandedState in order to toggle this container visibility.
inputContainerInput container used for input ports.
mainContainerMain container that includes all other containers.
outputContainerOutputs container, used for output ports.
titleNode's title element.
titleButtonContainerTitle bar button container. Contains the top right buttons.
titleContainerTitle bar container.
topContainerEntire top area containing input and output containers.

Public 함수

GetGlobalCenterGet the GraphElement's center point.
GetPositionGet the GraphElement position.
HitTestSee if point is over the GraphElement.
IsAscendableChecks if the GraphElement is automatically brought to front when selected.
IsCopiableChecks whether the GraphElement is copiable.
IsDroppableThe GraphElement is drag&droppable.
IsGroupableChecks whether the GraphElement is groupable.
IsMovableThe GraphElement is movable.
IsRenamableThe GraphElement is renamable.
IsResizableThe GraphElement is resizable.
IsSelectableThe GraphElement is selectable.
IsSelectedThe GraphElement is currently selected in specific container.
IsSnappableChecks whether the GraphElement is snappable.
IsStackableChecks whether the GraphElement is stackable.
OnSelectedCalled when the GraphElement is selected.
OnUnselectedCalled when the GraphElement is unselected.
ResetLayerReset the GraphElement to its original layer.
SelectSelect the GraphElement.
SetPositionSet the GraphElement position.
UnselectDeselect the GraphElement.
BuildContextualMenuAdd menu items to the node contextual menu.
CollectElementsRetrieves the set of edges that match a specified condition. The tested edges are connected to this node.
InstantiatePortCreate a new port specific to this node.
RefreshExpandedStateAfter adding custom elements to the extensionContainer, call this method in order for them to become visible.
RefreshPortsRefresh the layout of the ports.
SetPositionSet node position.

보호되는 함수

OnCustomStyleResolvedCalled when the custom style properties are resolved.
OnPortRemovedCalled when port is remove.
ToggleCollapseToggle node's collapse state.
UseDefaultStylingApplies the default styling of Node. This must be explicitly called by Node subclasses that use their own uxml files.