public sealed class ValueInput : UnitPort<ValueOutput, IUnitOutputPort, ValueConnection>, IUnitValuePort, IUnitInputPort, IUnitPort, IGraphItem
Constructors
Declaration
public ValueInput(string key, Type type)
Parameters
Properties
Declaration
public bool allowsNull { get; }
Property Value
Declaration
public ValueConnection connection { get; }
Property Value
Declaration
public bool hasDefaultValue { get; }
Property Value
Declaration
public override bool hasValidConnection { get; }
Property Value
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.hasValidConnection
Implements
Declaration
public override IEnumerable<IUnitOutputPort> invalidConnectedPorts { get; }
Property Value
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.invalidConnectedPorts
Declaration
public override IEnumerable<InvalidConnection> invalidConnections { get; }
Property Value
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.invalidConnections
Implements
Declaration
public bool nullMeansSelf { get; }
Property Value
Declaration
public Type type { get; }
Property Value
Implements
Declaration
public override IEnumerable<ValueOutput> validConnectedPorts { get; }
Property Value
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.validConnectedPorts
Declaration
public override IEnumerable<ValueConnection> validConnections { get; }
Property Value
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.validConnections
Methods
Declaration
public ValueInput AllowsNull()
Returns
Declaration
public override bool CanConnectToValid(ValueOutput port)
Parameters
Returns
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.CanConnectToValid(Unity.VisualScripting.ValueOutput)
Declaration
public override IUnitPort CompatiblePort(IUnit unit)
Parameters
Type |
Name |
Description |
IUnit |
unit |
|
Returns
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.CompatiblePort(Unity.VisualScripting.IUnit)
Implements
Declaration
public override void ConnectToInvalid(IUnitOutputPort port)
Parameters
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.ConnectToInvalid(Unity.VisualScripting.IUnitOutputPort)
Declaration
public override void ConnectToValid(ValueOutput port)
Parameters
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.ConnectToValid(Unity.VisualScripting.ValueOutput)
Declaration
public override void DisconnectFromInvalid(IUnitOutputPort port)
Parameters
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.DisconnectFromInvalid(Unity.VisualScripting.IUnitOutputPort)
Declaration
public override void DisconnectFromValid(ValueOutput port)
Parameters
Overrides
Unity.VisualScripting.UnitPort<Unity.VisualScripting.ValueOutput, Unity.VisualScripting.IUnitOutputPort, Unity.VisualScripting.ValueConnection>.DisconnectFromValid(Unity.VisualScripting.ValueOutput)
Declaration
public ValueInput NullMeansSelf()
Returns
Declaration
public void SetDefaultValue(object value)
Parameters
Type |
Name |
Description |
Object |
value |
|
Declaration
public static bool SupportsDefaultValue(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Extension Methods