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