Table of Contents

Class CeresPortElement

Namespace
Ceres.Editor.Graph
Assembly
Ceres.Graph.Editor.dll
public class CeresPortElement : Port
Inheritance
CeresPortElement

Properties

EditorField

public VisualElement EditorField { get; }

Property Value

VisualElement

IsExecutionPort

public bool IsExecutionPort { get; }

Property Value

bool

View

public CeresPortView View { get; }

Property Value

CeresPortView

Methods

BuildContextualMenu(ContextualMenuPopulateEvent)

protected virtual void BuildContextualMenu(ContextualMenuPopulateEvent evt)

Parameters

evt ContextualMenuPopulateEvent

CanConnect(CeresPortElement)

Whether this can connect other port with value compatible validation

public bool CanConnect(CeresPortElement other)

Parameters

other CeresPortElement

Returns

bool

Connect(Edge)

public override void Connect(Edge edge)

Parameters

edge Edge

Create(CeresPortView)

public static CeresPortElement Create(CeresPortView ownerView)

Parameters

ownerView CeresPortView

Returns

CeresPortElement

CreatePortTooltip(Type)

public string CreatePortTooltip(Type valueType)

Parameters

valueType Type

Returns

string

Disconnect(Edge)

public override void Disconnect(Edge edge)

Parameters

edge Edge

GetEditorFieldVisibility()

Whether port editor field is visible

public bool GetEditorFieldVisibility()

Returns

bool

IsCompatibleTo(CeresPortElement)

Whether this port's value is compatible to other port's value

public bool IsCompatibleTo(CeresPortElement other)

Parameters

other CeresPortElement

Returns

bool

IsConnectable()

Whether this can connect other ports

public bool IsConnectable()

Returns

bool

IsExecutionPortType(Type)

public static bool IsExecutionPortType(Type valueType)

Parameters

valueType Type

Returns

bool

SetEditorFieldVisibility(bool)

public void SetEditorFieldVisibility(bool isVisible)

Parameters

isVisible bool