Show / Hide Table of Contents

Class GraphView

Inheritance
Object
CallbackEventHandler
Focusable
VisualElement
GraphView
Implements
IEventHandler
ITransform
IUIElementDataWatch
IEnumerable<VisualElement>
IEnumerable
IVisualElementScheduler
IStyle
ISelection
Inherited Members
VisualElement.defaultFocusIndex
VisualElement.persistenceKey
VisualElement.userData
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.transform
VisualElement.ITransform.position
VisualElement.ITransform.rotation
VisualElement.ITransform.scale
VisualElement.ITransform.matrix
VisualElement.layout
VisualElement.contentRect
VisualElement.paddingRect
VisualElement.worldBound
VisualElement.localBound
VisualElement.worldTransform
VisualElement.pickingMode
VisualElement.name
VisualElement.OnStyleResolved(ICustomStyle)
VisualElement.Focus()
VisualElement.SendEvent(EventBase)
VisualElement.Dirty(ChangeType)
VisualElement.IsDirty(ChangeType)
VisualElement.AnyDirty(ChangeType)
VisualElement.ClearDirty(ChangeType)
VisualElement.enabled
VisualElement.SetEnabledFromHierarchy(Boolean)
VisualElement.enabledInHierarchy
VisualElement.enabledSelf
VisualElement.SetEnabled(Boolean)
VisualElement.visible
VisualElement.MarkDirtyRepaint()
VisualElement.DoRepaint(IStylePainter)
VisualElement.GetFullHierarchicalPersistenceKey()
VisualElement.GetOrCreatePersistentData<T>(Object, String)
VisualElement.GetOrCreatePersistentData<T>(ScriptableObject, String)
VisualElement.OverwriteFromPersistedData(Object, String)
VisualElement.SavePersistentData()
VisualElement.ContainsPoint(Vector2)
VisualElement.Overlaps(Rect)
VisualElement.DoMeasure(Single, VisualElement.MeasureMode, Single, VisualElement.MeasureMode)
VisualElement.SetSize(Vector2)
VisualElement.ResetPositionProperties()
VisualElement.ToString()
VisualElement.ClearClassList()
VisualElement.AddToClassList(String)
VisualElement.RemoveFromClassList(String)
VisualElement.ToggleInClassList(String)
VisualElement.EnableInClassList(String, Boolean)
VisualElement.ClassListContains(String)
VisualElement.FindAncestorUserData()
VisualElement.dataWatch
VisualElement.IUIElementDataWatch.RegisterWatch(Object, Action<Object>)
VisualElement.IUIElementDataWatch.UnregisterWatch(IUIElementDataWatchRequest)
VisualElement.shadow
VisualElement.clippingOptions
VisualElement.parent
VisualElement.panel
VisualElement.Add(VisualElement)
VisualElement.Insert(Int32, VisualElement)
VisualElement.Remove(VisualElement)
VisualElement.RemoveAt(Int32)
VisualElement.Clear()
VisualElement.ElementAt(Int32)
VisualElement.Item[Int32]
VisualElement.childCount
VisualElement.IndexOf(VisualElement)
VisualElement.Children()
VisualElement.Sort(Comparison<VisualElement>)
VisualElement.BringToFront()
VisualElement.SendToBack()
VisualElement.PlaceBehind(VisualElement)
VisualElement.PlaceInFront(VisualElement)
VisualElement.RemoveFromHierarchy()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.Contains(VisualElement)
VisualElement.FindCommonAncestor(VisualElement)
VisualElement.GetEnumerator()
VisualElement.IEnumerable.GetEnumerator()
VisualElement.schedule
VisualElement.IVisualElementScheduler.Execute(Action<TimerState>)
VisualElement.IVisualElementScheduler.Execute(Action)
VisualElement.style
VisualElement.IStyle.width
VisualElement.IStyle.height
VisualElement.IStyle.maxWidth
VisualElement.IStyle.maxHeight
VisualElement.IStyle.minWidth
VisualElement.IStyle.minHeight
VisualElement.IStyle.flex
VisualElement.IStyle.flexBasis
VisualElement.IStyle.flexGrow
VisualElement.IStyle.flexShrink
VisualElement.IStyle.overflow
VisualElement.IStyle.positionLeft
VisualElement.IStyle.positionTop
VisualElement.IStyle.positionRight
VisualElement.IStyle.positionBottom
VisualElement.IStyle.marginLeft
VisualElement.IStyle.marginTop
VisualElement.IStyle.marginRight
VisualElement.IStyle.marginBottom
VisualElement.IStyle.borderLeft
VisualElement.IStyle.borderTop
VisualElement.IStyle.borderRight
VisualElement.IStyle.borderBottom
VisualElement.IStyle.borderLeftWidth
VisualElement.IStyle.borderTopWidth
VisualElement.IStyle.borderRightWidth
VisualElement.IStyle.borderBottomWidth
VisualElement.IStyle.borderRadius
VisualElement.IStyle.borderTopLeftRadius
VisualElement.IStyle.borderTopRightRadius
VisualElement.IStyle.borderBottomRightRadius
VisualElement.IStyle.borderBottomLeftRadius
VisualElement.IStyle.paddingLeft
VisualElement.IStyle.paddingTop
VisualElement.IStyle.paddingRight
VisualElement.IStyle.paddingBottom
VisualElement.IStyle.positionType
VisualElement.IStyle.alignSelf
VisualElement.IStyle.textAlignment
VisualElement.IStyle.unityTextAlign
VisualElement.IStyle.fontStyle
VisualElement.IStyle.fontStyleAndWeight
VisualElement.IStyle.textClipping
VisualElement.IStyle.font
VisualElement.IStyle.fontSize
VisualElement.IStyle.wordWrap
VisualElement.IStyle.textColor
VisualElement.IStyle.color
VisualElement.IStyle.flexDirection
VisualElement.IStyle.backgroundColor
VisualElement.IStyle.borderColor
VisualElement.IStyle.backgroundImage
VisualElement.IStyle.backgroundSize
VisualElement.IStyle.backgroundScaleMode
VisualElement.IStyle.alignItems
VisualElement.IStyle.alignContent
VisualElement.IStyle.justifyContent
VisualElement.IStyle.flexWrap
VisualElement.IStyle.sliceLeft
VisualElement.IStyle.sliceTop
VisualElement.IStyle.sliceRight
VisualElement.IStyle.sliceBottom
VisualElement.IStyle.opacity
VisualElement.IStyle.cursor
VisualElement.IStyle.visibility
VisualElement.AddStyleSheetPath(String)
VisualElement.RemoveStyleSheetPath(String)
VisualElement.HasStyleSheetPath(String)
VisualElement.tooltip
Focusable.focusIndex
Focusable.Blur()
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, Capture)
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, Capture)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, Capture)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, Capture)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.HandleEvent(EventBase)
CallbackEventHandler.HasTrickleDownHandlers()
CallbackEventHandler.HasBubbleUpHandlers()
CallbackEventHandler.HasCaptureHandlers()
CallbackEventHandler.HasBubbleHandlers()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor.Experimental.UIElements.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
protected GraphView()

Fields

| Improve this Doc View Source

ports

Declaration
public UQuery.QueryState<Port> ports
Field Value
Type Description
UQuery.QueryState<Port>

Properties

| Improve this Doc View Source

canCopySelection

Declaration
protected virtual bool canCopySelection { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

canCutSelection

Declaration
protected virtual bool canCutSelection { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

canDeleteSelection

Declaration
protected virtual bool canDeleteSelection { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

canDuplicateSelection

Declaration
protected virtual bool canDuplicateSelection { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

canPaste

Declaration
protected virtual bool canPaste { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

canPasteSerializedData

Declaration
public GraphView.CanPasteSerializedDataDelegate canPasteSerializedData { get; set; }
Property Value
Type Description
GraphView.CanPasteSerializedDataDelegate
| Improve this Doc View Source

contentContainer

Declaration
public override VisualElement contentContainer { get; }
Property Value
Type Description
VisualElement
Overrides
VisualElement.contentContainer
| Improve this Doc View Source

contentViewContainer

Declaration
public VisualElement contentViewContainer { get; }
Property Value
Type Description
VisualElement
| Improve this Doc View Source

deleteSelection

Declaration
public GraphView.DeleteSelectionDelegate deleteSelection { get; set; }
Property Value
Type Description
GraphView.DeleteSelectionDelegate
| Improve this Doc View Source

edges

Declaration
public UQuery.QueryState<Edge> edges { get; }
Property Value
Type Description
UQuery.QueryState<Edge>
| Improve this Doc View Source

elementResized

Declaration
public GraphView.ElementResized elementResized { get; set; }
Property Value
Type Description
GraphView.ElementResized
| Improve this Doc View Source

elementsAddedToGroup

Declaration
public Action<Group, IEnumerable<GraphElement>> elementsAddedToGroup { get; set; }
Property Value
Type Description
Action<Group, IEnumerable<GraphElement>>
| Improve this Doc View Source

elementsInsertedToStackNode

Declaration
public Action<StackNode, int, IEnumerable<GraphElement>> elementsInsertedToStackNode { get; set; }
Property Value
Type Description
Action<StackNode, Int32, IEnumerable<GraphElement>>
| Improve this Doc View Source

elementsRemovedFromGroup

Declaration
public Action<Group, IEnumerable<GraphElement>> elementsRemovedFromGroup { get; set; }
Property Value
Type Description
Action<Group, IEnumerable<GraphElement>>
| Improve this Doc View Source

elementsRemovedFromStackNode

Declaration
public Action<StackNode, IEnumerable<GraphElement>> elementsRemovedFromStackNode { get; set; }
Property Value
Type Description
Action<StackNode, IEnumerable<GraphElement>>
| Improve this Doc View Source

graphElements

Declaration
public UQuery.QueryState<GraphElement> graphElements { get; }
Property Value
Type Description
UQuery.QueryState<GraphElement>
| Improve this Doc View Source

graphViewChanged

Declaration
public GraphView.GraphViewChanged graphViewChanged { get; set; }
Property Value
Type Description
GraphView.GraphViewChanged
| Improve this Doc View Source

groupTitleChanged

Declaration
public Action<Group, string> groupTitleChanged { get; set; }
Property Value
Type Description
Action<Group, String>
| Improve this Doc View Source

isReframable

Declaration
public bool isReframable { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

maxScale

Declaration
public float maxScale { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

minScale

Declaration
public float minScale { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

nodeCreationRequest

Declaration
public Action<NodeCreationContext> nodeCreationRequest { get; set; }
Property Value
Type Description
Action<NodeCreationContext>
| Improve this Doc View Source

nodes

Declaration
public UQuery.QueryState<Node> nodes { get; }
Property Value
Type Description
UQuery.QueryState<Node>
| Improve this Doc View Source

referenceScale

Declaration
public float referenceScale { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

scale

Declaration
public float scale { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

scaleStep

Declaration
public float scaleStep { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

selection

Declaration
public List<ISelectable> selection { get; protected set; }
Property Value
Type Description
List<ISelectable>
| Improve this Doc View Source

serializeGraphElements

Declaration
public GraphView.SerializeGraphElementsDelegate serializeGraphElements { get; set; }
Property Value
Type Description
GraphView.SerializeGraphElementsDelegate
| Improve this Doc View Source

unserializeAndPaste

Declaration
public GraphView.UnserializeAndPasteDelegate unserializeAndPaste { get; set; }
Property Value
Type Description
GraphView.UnserializeAndPasteDelegate
| Improve this Doc View Source

viewport

Declaration
public VisualElement viewport { get; }
Property Value
Type Description
VisualElement
| Improve this Doc View Source

viewTransform

Declaration
public ITransform viewTransform { get; }
Property Value
Type Description
ITransform
| Improve this Doc View Source

viewTransformChanged

Declaration
public GraphView.ViewTransformChanged viewTransformChanged { get; set; }
Property Value
Type Description
GraphView.ViewTransformChanged
| Improve this Doc View Source

zoomerMaxElementCountWithPixelCacheRegen

Declaration
public int zoomerMaxElementCountWithPixelCacheRegen { get; set; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

AddElement(GraphElement)

Declaration
public void AddElement(GraphElement graphElement)
Parameters
Type Name Description
GraphElement graphElement
| 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
Type Name Description
ISelectable selectable
| Improve this Doc View Source

BuildContextualMenu(ContextualMenuPopulateEvent)

Declaration
public virtual void BuildContextualMenu(ContextualMenuPopulateEvent evt)
Parameters
Type Name Description
ContextualMenuPopulateEvent evt
| Improve this Doc View Source

CalculateFrameTransform(Rect, Rect, Int32, out Vector3, out Vector3)

Declaration
public static void CalculateFrameTransform(Rect rectToFit, Rect clientRect, int border, out Vector3 frameTranslation, out Vector3 frameScaling)
Parameters
Type Name Description
Rect rectToFit
Rect clientRect
Int32 border
Vector3 frameTranslation
Vector3 frameScaling
| Improve this Doc View Source

CalculateRectToFitAll(VisualElement)

Declaration
public virtual Rect CalculateRectToFitAll(VisualElement container)
Parameters
Type Name Description
VisualElement container
Returns
Type Description
Rect
| Improve this Doc View Source

CanPasteSerializedData(String)

Declaration
protected bool CanPasteSerializedData(string data)
Parameters
Type Name Description
String data
Returns
Type Description
Boolean
| 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
Type Name Description
IEnumerable<GraphElement> elements
HashSet<GraphElement> elementsToCopySet
| 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
Type Name Description
IEnumerable<GraphElement> elementsToRemove
| Improve this Doc View Source

DeleteSelection()

Declaration
public virtual EventPropagation DeleteSelection()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

DeleteSelectionCallback(GraphView.AskUser)

Declaration
protected void DeleteSelectionCallback(GraphView.AskUser askUser)
Parameters
Type Name Description
GraphView.AskUser askUser
| Improve this Doc View Source

DeleteSelectionOperation(String, GraphView.AskUser)

Declaration
protected void DeleteSelectionOperation(string operationName, GraphView.AskUser askUser)
Parameters
Type Name Description
String operationName
GraphView.AskUser askUser
| 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
Type Name Description
EventBase evt
Overrides
VisualElement.ExecuteDefaultAction(EventBase)
| Improve this Doc View Source

ExecuteDefaultActionAtTarget(EventBase)

Declaration
protected override void ExecuteDefaultActionAtTarget(EventBase evt)
Parameters
Type Name Description
EventBase evt
Overrides
CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
| Improve this Doc View Source

FrameAll()

Declaration
public EventPropagation FrameAll()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FrameNext()

Declaration
public EventPropagation FrameNext()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FrameNext(Func<GraphElement, Boolean>)

Declaration
public EventPropagation FrameNext(Func<GraphElement, bool> predicate)
Parameters
Type Name Description
Func<GraphElement, Boolean> predicate
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FrameOrigin()

Declaration
public EventPropagation FrameOrigin()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FramePrev()

Declaration
public EventPropagation FramePrev()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FramePrev(Func<GraphElement, Boolean>)

Declaration
public EventPropagation FramePrev(Func<GraphElement, bool> predicate)
Parameters
Type Name Description
Func<GraphElement, Boolean> predicate
Returns
Type Description
EventPropagation
| Improve this Doc View Source

FrameSelection()

Declaration
public EventPropagation FrameSelection()
Returns
Type Description
EventPropagation
| Improve this Doc View Source

GetCompatiblePorts(Port, NodeAdapter)

Declaration
public virtual List<Port> GetCompatiblePorts(Port startPort, NodeAdapter nodeAdapter)
Parameters
Type Name Description
Port startPort
NodeAdapter nodeAdapter
Returns
Type Description
List<Port>
| Improve this Doc View Source

GetEdgeByGuid(String)

Declaration
public Edge GetEdgeByGuid(string guid)
Parameters
Type Name Description
String guid
Returns
Type Description
Edge
| Improve this Doc View Source

GetElementByGuid(String)

Declaration
public GraphElement GetElementByGuid(string guid)
Parameters
Type Name Description
String guid
Returns
Type Description
GraphElement
| Improve this Doc View Source

GetNodeByGuid(String)

Declaration
public Node GetNodeByGuid(string guid)
Parameters
Type Name Description
String guid
Returns
Type Description
Node
| Improve this Doc View Source

GetPortByGuid(String)

Declaration
public Port GetPortByGuid(string guid)
Parameters
Type Name Description
String guid
Returns
Type Description
Port
| Improve this Doc View Source

OnPersistentDataReady()

Declaration
public override void OnPersistentDataReady()
Overrides
VisualElement.OnPersistentDataReady()
| Improve this Doc View Source

PasteCallback()

Declaration
protected void PasteCallback()
| Improve this Doc View Source

RemoveElement(GraphElement)

Declaration
public void RemoveElement(GraphElement graphElement)
Parameters
Type Name Description
GraphElement graphElement
| Improve this Doc View Source

RemoveFromSelection(ISelectable)

Declaration
public virtual void RemoveFromSelection(ISelectable selectable)
Parameters
Type Name Description
ISelectable selectable
| Improve this Doc View Source

SerializeGraphElements(IEnumerable<GraphElement>)

Declaration
protected string SerializeGraphElements(IEnumerable<GraphElement> elements)
Parameters
Type Name Description
IEnumerable<GraphElement> elements
Returns
Type Description
String
| 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
Type Name Description
Single minScaleSetup
Single maxScaleSetup
Single scaleStepSetup
Single referenceScaleSetup
| Improve this Doc View Source

UnserializeAndPasteOperation(String, String)

Declaration
protected void UnserializeAndPasteOperation(string operationName, string data)
Parameters
Type Name Description
String operationName
String data
| Improve this Doc View Source

UpdateViewTransform(Vector3, Vector3)

Declaration
public void UpdateViewTransform(Vector3 newPosition, Vector3 newScale)
Parameters
Type Name Description
Vector3 newPosition
Vector3 newScale
| Improve this Doc View Source

ValidateTransform()

Declaration
protected void ValidateTransform()

Implements

IEventHandler
ITransform
IUIElementDataWatch
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
IVisualElementScheduler
IStyle
ISelection

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
BindingExtensions.Bind(VisualElement, SerializedObject)
BindingExtensions.Unbind(VisualElement)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX