Class ConstantNodeView
This is the base class for all constant node views.
Inheritance
CallbackEventHandler
Focusable
VisualElement
GraphElement
Node
ConstantNodeView
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 abstract class ConstantNodeView : ScriptNodeView, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, ISelectable
Constructors
ConstantNodeView(ConstantNode, ScriptGraphView)
Declaration
public ConstantNodeView(ConstantNode node, ScriptGraphView graphView)
Parameters
Type | Name | Description |
---|---|---|
ConstantNode | node | |
ScriptGraphView | graphView |
Properties
ConstantNode
Gets the constant node associated with this node view.
Declaration
public ConstantNode ConstantNode { get; }
Property Value
Type | Description |
---|---|
ConstantNode |
Methods
AddDefaultField<TValue, TField>(TValue)
Adds a default field to assign the constant value with.
Declaration
protected TField AddDefaultField<TValue, TField>(TValue value) where TField : VisualElement, INotifyValueChanged<TValue>, new()
Parameters
Type | Name | Description |
---|---|---|
TValue | value | The value. |
Returns
Type | Description |
---|---|
TField | The field. |
Type Parameters
Name | Description |
---|---|
TValue | The value's type. |
TField | The type of field to assign the value to. |
AddDefaultObjectField<TValue>(TValue)
Adds a default object field to assign the constant value with. This is useful for any type that inherits from Unity's Object class.
Declaration
protected ObjectField AddDefaultObjectField<TValue>(TValue value) where TValue : Object
Parameters
Type | Name | Description |
---|---|---|
TValue | value | The value. |
Returns
Type | Description |
---|---|
ObjectField | The object field. |
Type Parameters
Name | Description |
---|---|
TValue | The value type. |
Implements
UnityEngine.UIElements.IEventHandler
UnityEngine.UIElements.ITransform
UnityEngine.UIElements.Experimental.ITransitionAnimations
UnityEngine.UIElements.IExperimentalFeatures
UnityEngine.UIElements.IVisualElementScheduler
UnityEngine.UIElements.IResolvedStyle
UnityEditor.Experimental.GraphView.ISelectable