Class GraphView
Assembly: UnityEditor.dll
Syntax
public abstract class GraphView : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, ISelection
Constructors
|
Improve this Doc
View Source
GraphView()
Declaration
Fields
|
Improve this Doc
View Source
ports
Declaration
public UQuery.QueryState<Port> ports
Field Value
Properties
|
Improve this Doc
View Source
canCopySelection
Declaration
protected virtual bool canCopySelection { get; }
Property Value
|
Improve this Doc
View Source
canCutSelection
Declaration
protected virtual bool canCutSelection { get; }
Property Value
|
Improve this Doc
View Source
canDeleteSelection
Declaration
protected virtual bool canDeleteSelection { get; }
Property Value
|
Improve this Doc
View Source
canDuplicateSelection
Declaration
protected virtual bool canDuplicateSelection { get; }
Property Value
|
Improve this Doc
View Source
canPaste
Declaration
protected virtual bool canPaste { get; }
Property Value
|
Improve this Doc
View Source
canPasteSerializedData
Declaration
public GraphView.CanPasteSerializedDataDelegate canPasteSerializedData { get; set; }
Property Value
|
Improve this Doc
View Source
contentContainer
Declaration
public override VisualElement contentContainer { get; }
Property Value
Overrides
|
Improve this Doc
View Source
contentViewContainer
Declaration
public VisualElement contentViewContainer { get; }
Property Value
|
Improve this Doc
View Source
deleteSelection
Declaration
public GraphView.DeleteSelectionDelegate deleteSelection { get; set; }
Property Value
|
Improve this Doc
View Source
edges
Declaration
public UQuery.QueryState<Edge> edges { get; }
Property Value
|
Improve this Doc
View Source
elementResized
Declaration
public GraphView.ElementResized elementResized { get; set; }
Property Value
|
Improve this Doc
View Source
elementsAddedToGroup
Declaration
public Action<Group, IEnumerable<GraphElement>> elementsAddedToGroup { get; set; }
Property Value
|
Improve this Doc
View Source
elementsInsertedToStackNode
Declaration
public Action<StackNode, int, IEnumerable<GraphElement>> elementsInsertedToStackNode { get; set; }
Property Value
|
Improve this Doc
View Source
elementsRemovedFromGroup
Declaration
public Action<Group, IEnumerable<GraphElement>> elementsRemovedFromGroup { get; set; }
Property Value
|
Improve this Doc
View Source
elementsRemovedFromStackNode
Declaration
public Action<StackNode, IEnumerable<GraphElement>> elementsRemovedFromStackNode { get; set; }
Property Value
|
Improve this Doc
View Source
graphElements
Declaration
public UQuery.QueryState<GraphElement> graphElements { get; }
Property Value
|
Improve this Doc
View Source
graphViewChanged
Declaration
public GraphView.GraphViewChanged graphViewChanged { get; set; }
Property Value
|
Improve this Doc
View Source
groupTitleChanged
Declaration
public Action<Group, string> groupTitleChanged { get; set; }
Property Value
|
Improve this Doc
View Source
isReframable
Declaration
public bool isReframable { get; set; }
Property Value
|
Improve this Doc
View Source
maxScale
Declaration
public float maxScale { get; }
Property Value
|
Improve this Doc
View Source
minScale
Declaration
public float minScale { get; }
Property Value
|
Improve this Doc
View Source
nodeCreationRequest
Declaration
public Action<NodeCreationContext> nodeCreationRequest { get; set; }
Property Value
|
Improve this Doc
View Source
nodes
Declaration
public UQuery.QueryState<Node> nodes { get; }
Property Value
|
Improve this Doc
View Source
referenceScale
Declaration
public float referenceScale { get; }
Property Value
|
Improve this Doc
View Source
scale
Declaration
public float scale { get; }
Property Value
|
Improve this Doc
View Source
scaleStep
Declaration
public float scaleStep { get; }
Property Value
|
Improve this Doc
View Source
selection
Declaration
public List<ISelectable> selection { get; protected set; }
Property Value
|
Improve this Doc
View Source
serializeGraphElements
Declaration
public GraphView.SerializeGraphElementsDelegate serializeGraphElements { get; set; }
Property Value
|
Improve this Doc
View Source
unserializeAndPaste
Declaration
public GraphView.UnserializeAndPasteDelegate unserializeAndPaste { get; set; }
Property Value
|
Improve this Doc
View Source
viewport
Declaration
public VisualElement viewport { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public ITransform viewTransform { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public GraphView.ViewTransformChanged viewTransformChanged { get; set; }
Property Value
|
Improve this Doc
View Source
zoomerMaxElementCountWithPixelCacheRegen
Declaration
public int zoomerMaxElementCountWithPixelCacheRegen { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddElement(GraphElement)
Declaration
public void AddElement(GraphElement graphElement)
Parameters
|
Improve this Doc
View Source
AddLayer(Int32)
Declaration
public void AddLayer(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
AddToSelection(ISelectable)
Declaration
public virtual void AddToSelection(ISelectable selectable)
Parameters
|
Improve this Doc
View Source
Declaration
public virtual void BuildContextualMenu(ContextualMenuPopulateEvent evt)
Parameters
|
Improve this Doc
View Source
Declaration
public static void CalculateFrameTransform(Rect rectToFit, Rect clientRect, int border, out Vector3 frameTranslation, out Vector3 frameScaling)
Parameters
|
Improve this Doc
View Source
CalculateRectToFitAll(VisualElement)
Declaration
public virtual Rect CalculateRectToFitAll(VisualElement container)
Parameters
Returns
|
Improve this Doc
View Source
CanPasteSerializedData(String)
Declaration
protected bool CanPasteSerializedData(string data)
Parameters
Type |
Name |
Description |
String |
data |
|
Returns
|
Improve this Doc
View Source
ClearSelection()
Declaration
public virtual void ClearSelection()
|
Improve this Doc
View Source
CollectCopyableGraphElements(IEnumerable<GraphElement>, HashSet<GraphElement>)
Declaration
protected virtual void CollectCopyableGraphElements(IEnumerable<GraphElement> elements, HashSet<GraphElement> elementsToCopySet)
Parameters
|
Improve this Doc
View Source
CopySelectionCallback()
Declaration
protected void CopySelectionCallback()
|
Improve this Doc
View Source
CutSelectionCallback()
Declaration
protected void CutSelectionCallback()
|
Improve this Doc
View Source
DeleteElements(IEnumerable<GraphElement>)
Declaration
public void DeleteElements(IEnumerable<GraphElement> elementsToRemove)
Parameters
|
Improve this Doc
View Source
DeleteSelection()
Declaration
public virtual EventPropagation DeleteSelection()
Returns
|
Improve this Doc
View Source
DeleteSelectionCallback(GraphView.AskUser)
Declaration
protected void DeleteSelectionCallback(GraphView.AskUser askUser)
Parameters
|
Improve this Doc
View Source
DeleteSelectionOperation(String, GraphView.AskUser)
Declaration
protected void DeleteSelectionOperation(string operationName, GraphView.AskUser askUser)
Parameters
|
Improve this Doc
View Source
DuplicateSelectionCallback()
Declaration
protected void DuplicateSelectionCallback()
|
Improve this Doc
View Source
ExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)
Parameters
Overrides
|
Improve this Doc
View Source
ExecuteDefaultActionAtTarget(EventBase)
Declaration
protected override void ExecuteDefaultActionAtTarget(EventBase evt)
Parameters
Overrides
|
Improve this Doc
View Source
FrameAll()
Declaration
public EventPropagation FrameAll()
Returns
|
Improve this Doc
View Source
FrameNext()
Declaration
public EventPropagation FrameNext()
Returns
|
Improve this Doc
View Source
FrameNext(Func<GraphElement, Boolean>)
Declaration
public EventPropagation FrameNext(Func<GraphElement, bool> predicate)
Parameters
Returns
|
Improve this Doc
View Source
FrameOrigin()
Declaration
public EventPropagation FrameOrigin()
Returns
|
Improve this Doc
View Source
FramePrev()
Declaration
public EventPropagation FramePrev()
Returns
|
Improve this Doc
View Source
FramePrev(Func<GraphElement, Boolean>)
Declaration
public EventPropagation FramePrev(Func<GraphElement, bool> predicate)
Parameters
Returns
|
Improve this Doc
View Source
FrameSelection()
Declaration
public EventPropagation FrameSelection()
Returns
|
Improve this Doc
View Source
GetCompatiblePorts(Port, NodeAdapter)
Declaration
public virtual List<Port> GetCompatiblePorts(Port startPort, NodeAdapter nodeAdapter)
Parameters
Returns
|
Improve this Doc
View Source
GetEdgeByGuid(String)
Declaration
public Edge GetEdgeByGuid(string guid)
Parameters
Type |
Name |
Description |
String |
guid |
|
Returns
|
Improve this Doc
View Source
GetElementByGuid(String)
Declaration
public GraphElement GetElementByGuid(string guid)
Parameters
Type |
Name |
Description |
String |
guid |
|
Returns
|
Improve this Doc
View Source
GetNodeByGuid(String)
Declaration
public Node GetNodeByGuid(string guid)
Parameters
Type |
Name |
Description |
String |
guid |
|
Returns
|
Improve this Doc
View Source
GetPortByGuid(String)
Declaration
public Port GetPortByGuid(string guid)
Parameters
Type |
Name |
Description |
String |
guid |
|
Returns
|
Improve this Doc
View Source
OnPersistentDataReady()
Declaration
public override void OnPersistentDataReady()
Overrides
|
Improve this Doc
View Source
PasteCallback()
Declaration
protected void PasteCallback()
|
Improve this Doc
View Source
RemoveElement(GraphElement)
Declaration
public void RemoveElement(GraphElement graphElement)
Parameters
|
Improve this Doc
View Source
RemoveFromSelection(ISelectable)
Declaration
public virtual void RemoveFromSelection(ISelectable selectable)
Parameters
|
Improve this Doc
View Source
SerializeGraphElements(IEnumerable<GraphElement>)
Declaration
protected string SerializeGraphElements(IEnumerable<GraphElement> elements)
Parameters
Returns
|
Improve this Doc
View Source
SetupZoom(Single, Single)
Declaration
public void SetupZoom(float minScaleSetup, float maxScaleSetup)
Parameters
Type |
Name |
Description |
Single |
minScaleSetup |
|
Single |
maxScaleSetup |
|
|
Improve this Doc
View Source
SetupZoom(Single, Single, Single, Single)
Declaration
public void SetupZoom(float minScaleSetup, float maxScaleSetup, float scaleStepSetup, float referenceScaleSetup)
Parameters
|
Improve this Doc
View Source
UnserializeAndPasteOperation(String, String)
Declaration
protected void UnserializeAndPasteOperation(string operationName, string data)
Parameters
|
Improve this Doc
View Source
Declaration
public void UpdateViewTransform(Vector3 newPosition, Vector3 newScale)
Parameters
|
Improve this Doc
View Source
Declaration
protected void ValidateTransform()
Implements
Extension Methods