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

GraphView

class in UnityEditor.Experimental.GraphView


인터페이스 구현:IEventHandler, IExperimentalFeatures, IResolvedStyle, ISelection, ITransform, ITransitionAnimations, IVisualElementScheduler

매뉴얼로 전환

설명

Main GraphView class.

변수

canPasteSerializedDataAsk whether or not the serialized data can be pasted.
contentViewContainerMain content container.
deleteSelectionDelete selection callback.
edgesAll edges in the graph.
elementResizedElement resized callback.
elementsAddedToGroupCallback for when GraphElements are added to the group.
elementsInsertedToStackNodeCallback for when GraphElements are inserted into a StackNode.
elementsRemovedFromGroupCallback for when GraphElements are removed from the group.
elementsRemovedFromStackNodeCallback for when GraphElements are removed from a StackNode.
graphElementsAll GraphElements in the graph.
graphViewChangedCallback for when certain changes have occured in the graph. See GraphViewChange.
groupTitleChangedCallback for when a group title is changed.
isReframableWhether or not the selection is reframable.
maxScaleMax zoom level.
minScaleMin zoom level.
nodeCreationRequestCallback for when the user requests to display the node creation window.
nodesAll nodes currently in the graph.
placematContainerThe PlacematContainer used by the GraphView.
portsAll ports currently in the graph.
referenceScaleReference zoom level.
scaleCurrent graph zoom level.
scaleStepZoom step. See ContentZoomer.scaleStep for details.
selectionAll currently selected elements in the graph.
serializeGraphElementsCallback for serializing graph elements for copy/paste and other actions.
supportsWindowedBlackboardSet to true when this GraphView supports windowed Blackboards. Set to false otherwise.
unserializeAndPasteCallback for unserializing graph elements and adding them to the graph.
viewportThe graph's viewport. This is currently just itself.
viewTransformGraph's view transform.
viewTransformChangedView transform changed callback.
zoomerMaxElementCountWithPixelCacheRegenNumber of elements in the graph above which the zoom manipulator will turn off pixel cache regeneration on each tick to avoid performance drops.

Public 함수

AddElementAdd new GraphElement. Should use this instead of Add() for adding GraphElements.
AddLayerAdds a new layer to the GraphView.
AddToSelectionAdd element to selection.
BuildContextualMenuAdd menu items to the contextual menu.
CalculateRectToFitAllCalculate the rectangle size and position to fit all elements in graph.
ClearSelectionClear selection.
DeleteElementsRemove elements from the graph view.
DeleteSelectionDelete selected elements.
FrameAllFocus view all elements in the graph.
FrameNextFocus view on the next element after the one currently selected.
FrameOriginFocus view on the graph's origin.
FramePrevFocus view on the previous element before the one currently selected.
FrameSelectionFocus view on currently selected elements.
GetBlackboardGets the blackboard associated with this GraphView.
GetCompatiblePortsGet all ports compatible with given port.
GetEdgeByGuidGet edge by its GUID.
GetElementByGuidGet any element with a given GUID.
GetNodeByGuidGet node with a given GUID.
GetPortByGuidGet port by its GUID.
GetPortCenterOverrideGets another location for a specific port and checks if the port has an overridden position.
ReleaseBlackboardReleases an associated blackboard from this GraphView.
RemoveElementRemove element from the graph.
RemoveFromSelectionRemove element from selection.
SetupZoomSetup zoom properties.
UpdateViewTransformUpdate the viewport transform.

보호되는 함수

CanPasteSerializedDataDefault method for checking if serialized data can be pasted.
CreatePlacematContainerOverride this method, in a derived class, to create a custom PlacematContainer.
DeleteSelectionOperationDefault method for deleting selection.
SerializeGraphElementsDefault method for serializing graph elements.
UnserializeAndPasteOperationDefault method for unserializing elements and pasting.
ValidateTransformValidate the view transform.

정적 함수

CalculateFrameTransformCalculate the view transform based on zoom level and the size of the window or parent.
CollectElementsRetrieves the set of elements that match a specified condition. The matching elements are selected from an enumerable of graph elements.

델리게이트

CanPasteSerializedDataDelegateDelegate for checking if serialized data can be pasted.
DeleteSelectionDelegateDelegate for deleting selection.
ElementResizedElement resized delegate.
GraphViewChangedDelegate used to indicate a change in GraphView usualy done by a Manipulator.
SerializeGraphElementsDelegateDelegate for serializing graph elements.
UnserializeAndPasteDelegateDelegate for unserializing and pasting elements.
ViewTransformChangedView transform changed (zoom) delegate.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961