Class ScriptNodeView
The default script node view.
Inheritance
CallbackEventHandler
Focusable
VisualElement
GraphElement
Node
ScriptNodeView
Implements
IEventHandler
ITransform
ITransitionAnimations
IExperimentalFeatures
IVisualElementScheduler
IResolvedStyle
ISelectable
Inherited Members
Node.m_CollapseButton
Node.m_ButtonContainer
Node.RefreshExpandedState()
Node.GetPosition()
Node.SetPosition(Rect)
Node.OnPortRemoved(Port)
Node.RefreshPorts()
Node.ToggleCollapse()
Node.UseDefaultStyling()
Node.BuildContextualMenu(ContextualMenuPopulateEvent)
Node.mainContainer
Node.titleContainer
Node.inputContainer
Node.outputContainer
Node.titleButtonContainer
Node.topContainer
Node.extensionContainer
Node.expanded
Node.title
GraphElement.ResetLayer()
GraphElement.OnCustomStyleResolved(ICustomStyle)
GraphElement.IsSelectable()
GraphElement.IsMovable()
GraphElement.IsResizable()
GraphElement.IsDroppable()
GraphElement.IsAscendable()
GraphElement.IsRenamable()
GraphElement.GetGlobalCenter()
GraphElement.UpdatePresenterPosition()
GraphElement.OnSelected()
GraphElement.OnUnselected()
GraphElement.HitTest(Vector2)
GraphElement.Unselect(VisualElement)
GraphElement.IsSelected(VisualElement)
GraphElement.elementTypeColor
GraphElement.layer
GraphElement.capabilities
GraphElement.selected
VisualElement.disabledUssClassName
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.SendEvent(EventBase)
VisualElement.MarkDirtyRepaint()
VisualElement.ContainsPoint(Vector2)
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetClasses()
VisualElement.ClearClassList()
VisualElement.FindAncestorUserData()
VisualElement.Add(VisualElement)
VisualElement.Remove(VisualElement)
VisualElement.Clear()
VisualElement.IndexOf(VisualElement)
VisualElement.Children()
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.viewDataKey
VisualElement.userData
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.usageHints
VisualElement.transform
VisualElement.layout
VisualElement.contentRect
VisualElement.paddingRect
VisualElement.worldBound
VisualElement.localBound
VisualElement.worldTransform
VisualElement.pickingMode
VisualElement.name
VisualElement.enabledInHierarchy
VisualElement.enabledSelf
VisualElement.visible
VisualElement.generateVisualContent
VisualElement.experimental
VisualElement.hierarchy
VisualElement.cacheAsBitmap
VisualElement.parent
VisualElement.panel
VisualElement.contentContainer
VisualElement.childCount
VisualElement.schedule
VisualElement.style
VisualElement.customStyle
VisualElement.resolvedStyle
VisualElement.styleSheets
VisualElement.tooltip
Focusable.Blur()
Focusable.focusable
Focusable.tabIndex
Focusable.delegatesFocus
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.HandleEvent(EventBase)
CallbackEventHandler.HasTrickleDownHandlers()
CallbackEventHandler.HasBubbleUpHandlers()
CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
Namespace: InsaneScatterbrain.ScriptGraph.Editor
Syntax
public class ScriptNodeView : Node, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, ISelectable
Constructors
ScriptNodeView(IScriptNode, ScriptGraphView)
Creates a new script node view for the given node and script graph view.
Declaration
public ScriptNodeView(IScriptNode node, ScriptGraphView graphView)
Parameters
Type | Name | Description |
---|---|---|
IScriptNode | node | The node. |
ScriptGraphView | graphView | The graph view. |
Properties
Graph
Gets the graph this node is a part of.
Declaration
protected ScriptGraphGraph Graph { get; }
Property Value
Type | Description |
---|---|
ScriptGraphGraph |
GraphView
Declaration
protected ScriptGraphView GraphView { get; }
Property Value
Type | Description |
---|---|
ScriptGraphView |
Icon
Declaration
public virtual Texture2D Icon { get; }
Property Value
Type | Description |
---|---|
Texture2D |
Inputs
Gets all the input port views.
Declaration
public IReadOnlyDictionary<string, Port> Inputs { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<string, Port> |
IsNoteReadOnly
Declaration
public bool IsNoteReadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
Node
Gets the node this node view represents.
Declaration
public IScriptNode Node { get; }
Property Value
Type | Description |
---|---|
IScriptNode |
Outputs
Gets all the output port views.
Declaration
public IReadOnlyDictionary<string, Port> Outputs { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<string, Port> |
Methods
AddIcon()
Declaration
protected void AddIcon()
AddInPort(InPort)
Declaration
protected void AddInPort(InPort input)
Parameters
Type | Name | Description |
---|---|---|
InPort | input |
AddOutPort(OutPort)
Declaration
protected void AddOutPort(OutPort output)
Parameters
Type | Name | Description |
---|---|---|
OutPort | output |
Dispose()
Declaration
public void Dispose()
HideNote()
Declaration
public void HideNote()
Initialize()
Initializes the node view.
Declaration
public virtual void Initialize()
InitializeTitle()
Declaration
protected virtual void InitializeTitle()
MoveInPort(InPort, int)
Declaration
protected void MoveInPort(InPort input, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
InPort | input | |
int | newIndex |
MoveOutPort(OutPort, int)
Declaration
protected void MoveOutPort(OutPort output, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
OutPort | output | |
int | newIndex |
Refresh()
Declaration
protected void Refresh()
RemoveInPort(InPort)
Declaration
protected void RemoveInPort(InPort input)
Parameters
Type | Name | Description |
---|---|---|
InPort | input |
RemoveOutPort(OutPort)
Declaration
protected void RemoveOutPort(OutPort output)
Parameters
Type | Name | Description |
---|---|---|
OutPort | output |
RenameInPort(InPort, string, string)
Declaration
protected void RenameInPort(InPort input, string oldName, string newName)
Parameters
Type | Name | Description |
---|---|---|
InPort | input | |
string | oldName | |
string | newName |
RenameOutPort(OutPort, string, string)
Declaration
protected void RenameOutPort(OutPort output, string oldName, string newName)
Parameters
Type | Name | Description |
---|---|---|
OutPort | output | |
string | oldName | |
string | newName |
ShowNote()
Declaration
public void ShowNote()
Events
OnDispose
Declaration
public event Action OnDispose
Event Type
Type | Description |
---|---|
Action |
Implements
UnityEngine.UIElements.IEventHandler
UnityEngine.UIElements.ITransform
UnityEngine.UIElements.Experimental.ITransitionAnimations
UnityEngine.UIElements.IExperimentalFeatures
UnityEngine.UIElements.IVisualElementScheduler
UnityEngine.UIElements.IResolvedStyle
UnityEditor.Experimental.GraphView.ISelectable