跳到主要内容

Class StepNode

Node base class.

Properties

hasAnyConnection

public bool hasAnyConnection { get; }

muted

public override bool muted { get; protected set; }

guid

public string guid { get; set; }

title

public virtual string title { get; }

subtitle

public virtual string subtitle { get; }

width

public virtual float width { get; }

position

public override Vector2 position { get; set; }

contentContainer

public override VisualElement contentContainer { get; }

color

The color of this node.

public virtual Color color { get; }

step

public IStep step { get; internal set; }

process

Represents the IProcess where the winS.UnityEditor.ProcessEditor.StepNode.step is located.

public IProcess process { get; internal set; }

guiFactory

public GUIFactory guiFactory { get; internal set; }

titleElement

protected Text titleElement { get; private set; }

subtitleElement

protected Text subtitleElement { get; private set; }
protected VisualElement head { get; private set; }

muteMask

protected MuteMask muteMask { get; }

nodeBorder

protected NodeBorder nodeBorder { get; private set; }

nodeContent

protected NodeContent nodeContent { get; private set; }

Methods

RequestConnect(OutputPort outputPort)

Called when any winS.UnityEditor.ProcessEditor.InputPort Request Connect to this node. Override this method to implement a custom connection.

public virtual Connectionline RequestConnect(OutputPort outputPort)

OnNodeSelected()

Called when node selected.

protected virtual void OnNodeSelected()

OnNodeUnselected()

Called when node unselected.

protected virtual void OnNodeUnselected()

Mute()

public override void Mute()

Unmute()

public override void Unmute()