Home
  • Manual
  • Node Index
  • API
  • Changelog
Show / Hide Table of Contents
  • InsaneScatterbrain
    • Calc
    • Color32EqualityComparer
    • EqualityComparer
    • TrigMath
  • InsaneScatterbrain.DataStructures
    • Pair<T>
  • InsaneScatterbrain.DelaunatorSharp
    • DelaunatorNoAlloc
  • InsaneScatterbrain.Dependencies
    • DependencyContainer
    • DependencyNotFoundException
    • IDependencyContainer
  • InsaneScatterbrain.Editor.Services
    • Assets
  • InsaneScatterbrain.Editor.Updates
    • UpdateAction
    • Updater
  • InsaneScatterbrain.Extensions
    • ColorExtensions
    • ExceptionExtensions
    • FieldInfoExtensions
    • HashSetExtensions
    • IntExtensions
    • ListExtensions
    • RandomExtensions
    • SortedListExtensions
    • StackExtensions
    • Texture2DDrawingExtensions
    • Texture2DExtensions
    • TypeExtensions
    • Vector2Extensions
    • Vector2IntExtensions
  • InsaneScatterbrain.MapGraph
    • AddFloatsNode
    • AddFloatToVector2Node
    • AddFloatToVector3Node
    • AddIntsNode
    • AddIntToVector2IntNode
    • AddIntToVector3IntNode
    • AddRandomEdgesNode
    • AddVector2IntsNode
    • AddVector2sNode
    • AddVector3IntsNode
    • AddVector3sNode
    • ApplyMaskNode
    • Area
    • AreaExtractor
    • AreaGraph
    • AreaGraphBuilder
    • AreaGraphEdge
    • AreaGraphEdgePool
    • AreaGraphPool
    • AreaPool
    • AreasCentroidPointsNode
    • AreasSpecialBorderPointsNode
    • AreasToPointsNode
    • BasicMathOperationNode<T>
    • BasicMathOperationNode<T1, T2, TOut>
    • BspLeafCenterPointsNode
    • BspNode
    • BspNodePool
    • BspTree
    • BspTreePool
    • CellularAutomataSmoothingNode
    • ChangeTextureSizeNode
    • ClampFloatsNode
    • ClampIntsNode
    • CollectionPool<TCollection, TValue>
    • ConnectAreaGraphCentroidsNode
    • ConnectAreaGraphClosestBorderPointsNode
    • ConnectAreaGraphRandomPointsNode
    • ConnectedPointsToPointsNode
    • ConvertTextureToTilemapNode
    • CopyTilemapDataNode
    • CornerPointsNode
    • CurrentOrEmptyTextureNode
    • DataToTextureNode
    • DictionaryPool<TDictionary, TKey, TValue>
    • DivideFloatsNode
    • DivideIntsNode
    • DivideVector2ByFloatNode
    • DivideVector2IntByIntNode
    • DivideVector2IntsNode
    • DivideVector2sNode
    • DivideVector3ByFloatNode
    • DivideVector3IntByIntNode
    • DivideVector3IntsNode
    • DivideVector3sNode
    • DomainWarpFractalType
    • DomainWarpType
    • DrawAreasNode
    • DrawBorderNode
    • DrawCirclesNode
    • DrawConnectionsBiasedRandomWalkNode
    • DrawGridNode
    • DrawManhattanConnectionsNode
    • DrawNoiseThresholdNode
    • DrawOutlineNode
    • DrawPointsNode
    • DrawRectsNode
    • DrawShortestPathNode
    • EmptyTextureNode
    • ExtractAreasNode
    • ExtractColorNode
    • ExtractPointsNode
    • ExtractPointsWithNeighboursNode
    • FastNoiseEnum
    • FlipTextureNode
    • FractalType
    • GenerateAreaGraphNode
    • GenerateMstAreaGraphNode
    • GenerateRstAreaGraphNode
    • HexagonalGridOffsetType
    • InvertMaskNode
    • IObjectType<TEntry, TObject>
    • IObjectTypeEntry<T>
    • IObjectTypeSet<TType, TObject>
    • ListPool<TValue>
    • LoadTextureData
    • MapGraphGraph
    • MapGraphTilemapPrefab
    • Mask
    • MaskPool
    • MaxFloatsNode
    • MaxIntsNode
    • MergeAreasNode
    • MergeMasksNode
    • MergePointsNode
    • MergeTilemapsNode
    • MinFloatsNode
    • MinIntsNode
    • MultiplyFloatsNode
    • MultiplyIntsNode
    • MultiplyVector2ByFloatNode
    • MultiplyVector2IntByIntNode
    • MultiplyVector2IntsNode
    • MultiplyVector2sNode
    • MultiplyVector3ByFloatNode
    • MultiplyVector3IntByIntNode
    • MultiplyVector3IntsNode
    • MultiplyVector3sNode
    • NamedColor
    • NamedColorNode
    • NamedColorSet
    • NoiseNode
    • ObjectType<TEntry, TObject>
    • ObjectTypeEntry<T>
    • ObjectTypeSet<TType, TEntry, TObject>
    • ObjectTypeSetScriptableObject<TType, TEntry, TObject>
    • OpenObjectTypeSet<TType, TEntry, TObject>
    • Outliner
    • PerlinNoiseFillTextureNode
    • PointsToAreasNode
    • PoolInitializer
    • PowerNode
    • PrefabSet
    • PrefabType
    • PrefabTypeEntry
    • RandomBoolNode
    • RandomBspRoomsNode
    • RandomBspTreeNode
    • RandomColorNode
    • RandomExtensions
    • RandomFloatNode
    • RandomIntNode
    • RandomlyFillTextureNode
    • RandomlyStampTilemapsNode
    • RandomNode<T>
    • RandomPointsNode
    • RandomRectsNode
    • RandomRngStateNode
    • RandomVector2IntNode
    • RandomVector2Node
    • RandomVector3IntNode
    • RandomVector3Node
    • RandomWalkerNode
    • RangeRandomNode<T>
    • RectCenterPointsNode
    • RectsToAreasNode
    • ReplaceColorNode
    • ReplaceGameObjectChildrenNode
    • ResizeTextureNode
    • RotateTextureNode
    • RotationalSymmetry
    • SaveData
    • SaveTextureData
    • ScaleTextureNode
    • ScaleTextureToNode
    • ScaleTextureVector2Node
    • ShiftTextureNode
    • SplitConnectionsManhattanNode
    • SquareRootNode
    • StackPool<T>
    • StampNode
    • SubtractFloatFromVector2Node
    • SubtractFloatFromVector3Node
    • SubtractFloatsNode
    • SubtractIntFromVector2IntNode
    • SubtractIntFromVector3IntNode
    • SubtractIntsNode
    • SubtractMaskNode
    • SubtractVector2IntsNode
    • SubtractVector2sNode
    • SubtractVector3IntsNode
    • SubtractVector3sNode
    • TextureData
    • TextureData.Color32ArrayFacade
    • TextureDataDrawingExtensions
    • TextureDataExtensions
    • TextureDataPool
    • TextureSizeNode
    • TextureToChildGameObjectsNode
    • TextureToDataNode
    • TextureToGameObjectsNode
    • TextureToMaskNode
    • TextureToTilemapNode
    • TilemapData
    • TilemapDataPool
    • TilemapSet
    • TilemapToDataNode
    • TilemapToTextureNode
    • TilemapType
    • TilemapTypeEntry
    • Tileset
    • TileType
    • TileTypeEntry
    • TransparentColorNode
    • Vector2IntComparer
    • Vector2IntFromFloats
    • Vector2IntFromInts
    • Vector2IntToInts
    • Vector2IntToVector2
    • Vector3IntComparer
    • WaveformFunctionCollapseNode
  • InsaneScatterbrain.MapGraph.Editor
    • AboutWindow
    • AddRandomEdgesNodeView
    • ApplyMaskNodeView
    • AreaSpecialPointsNodeView
    • CellularAutomataSmoothingNodeView
    • CellularDistanceFunctionConstantNodeView
    • CellularReturnTypeConstantNodeView
    • ChangeTextureSizeNodeView
    • CornerPointsNodeView
    • DataSetList<T>
    • DataSetListBase<T>
    • DomainWarpFractalTypeNodeView
    • DomainWarpTypeConstantNodeView
    • DrawAreasNodeView
    • DrawBorderNodeView
    • DrawCirclesNodeView
    • DrawConnectionsBiasedRandomWalkNodeView
    • DrawGridNodeView
    • DrawManhattanConnectionsNodeView
    • DrawNoiseThresholdNodeView
    • DrawOutlineNodeView
    • DrawPointsNodeView
    • DrawRectsNodeView
    • DrawShortestPathConnectionsNodeView
    • EmptyTextureNodeView
    • EnumConstantNodeView<T>
    • ExtractAreasNodeView
    • ExtractColorNodeView
    • ExtractPointsNodeView
    • ExtractPointsWithNeighboursNodeView
    • FlipTextureNodeView
    • FractalTypeNodeView
    • GenerateAreaGraphNodeView
    • GenerateMstAreaGraphNodeView
    • GenerateRstAreaGraphNodeView
    • Initializer
    • InputParametersList
    • InvertMaskNodeView
    • ListBase
    • MapGraphAsset
    • MapGraphAssetUpdater
    • MapGraphCreateMenu
    • MapGraphEditor
    • MapGraphEditorInfo
    • MapGraphEditorSettingsWindow
    • MapGraphEditorSettingsWindowInitializer
    • MapGraphInitializer
    • MapGraphUpdater
    • MergeAreasNodeView
    • NamedColorNodeView
    • NamedColorSetEditor
    • NamedColorSetList
    • NewUpdatesWindow
    • NoiseNodeView
    • NoiseTypeNodeView
    • ObjectTypeEntryList<TType, TEntry, TObject>
    • ObjectTypeSetList<TType, TEntry, TObject>
    • OutputParametersList
    • ParametersList
    • PerlinNoiseFillTextureNodeView
    • PrefabSetEditor
    • PrefabTypeEntryList
    • PrefabTypeList
    • ProcessGraphNodeView
    • RandomBspRoomsNodeView
    • RandomBspTreeNodeView
    • RandomlyFillTextureNodeView
    • RandomlyStampTilemapsNodeView
    • RandomPointsNodeView
    • RandomRectsNodeView
    • RandomWalkerNodeView
    • ReplaceColorNodeView
    • ResizeTextureNodeView
    • RotateTextureNodeView
    • RotationalSymmetryNodeView
    • RotationType3dConstantNodeView
    • ScaleTextureNodeView
    • ScaleTextureToNodeView
    • ScaleTextureVector2NodeView
    • ScriptGraphAssetUpdater
    • ScriptNodeViewExtensions
    • ShiftTextureNodeView
    • StampNodeView
    • TextureConstantNodeView
    • TextureToMaskNodeView
    • TilemapConstantNodeView
    • TilemapPrefabEditor
    • TilemapSetConstantNodeView
    • TilemapSetEditor
    • TilemapToTextureNodeView
    • TilemapTypeEntryList
    • TilemapTypeList
    • TilesetConstantNodeView
    • TilesetEditor
    • TileTypeEntryList
    • TileTypeList
    • TransparentColorNodeView
    • UpdateAction_1_10
    • UpdateAction_1_14
    • UpdateAction_1_15
    • UpdateAction_1_2
    • UpdateChecker
    • WaveformFunctionCollapseNodeView
  • InsaneScatterbrain.Pooling
    • IPool
    • Pool<T>
    • PoolManager
  • InsaneScatterbrain.RandomNumberGeneration
    • Rng
    • RngState
  • InsaneScatterbrain.ScriptGraph
    • BoolParameterField
    • BoundsIntParameterField
    • BoundsParameterField
    • Color32ParameterField
    • ConstantNode
    • ConsumerNode
    • CopyData
    • CopyPaste
    • DataSet<T>
    • DataSetItem
    • DataSetScriptableObject<TItem, TOpenSet>
    • DataSetScriptableObject<TItem>
    • ExecutionGraph
    • ExecutionGraphBuilder
    • ExplicitInPortTypesAttribute
    • ExplicitOutPortTypesAttribute
    • ExplicitPortTypesAttribute
    • FloatParameterField
    • IConsumerNode
    • IDataSet
    • IDataSet<T>
    • IDataSetItem
    • IInstanceProvider
    • IncompatiblePortTypeException
    • INode
    • InPort
    • InPortAttribute
    • InputNode
    • IntParameterField
    • IOpenDataSet<T>
    • IParameterField
    • IPool
    • IPoolInitializer
    • IPreparable
    • IProcessorNode
    • IProviderNode
    • IScriptGraphInstanceProvider
    • IScriptNode
    • NewInstanceProvider
    • NewScriptGraphInstanceProvider
    • NodeEdge
    • ObjectParameterField
    • OpenDataSet<T>
    • OutPort
    • OutPortAttribute
    • OutputNode
    • PairVector2IntParameterField
    • Pool<T>
    • PoolManager
    • PoolManagerInitializer
    • PoolManagerSingleton
    • Pools
    • PortAttribute
    • PortNotFoundException
    • ProcessGraphNode
    • ProcessorNode
    • ProviderNode
    • RectIntParameterField
    • RectParameterField
    • RequiredPortNotConnectedException
    • RngExtensions
    • ScriptGraphComponents
    • ScriptGraphEditorInfo
    • ScriptGraphGraph
    • ScriptGraphInput
    • ScriptGraphInput<T>
    • ScriptGraphInputBool
    • ScriptGraphInputBounds
    • ScriptGraphInputBoundsInt
    • ScriptGraphInputColor32
    • ScriptGraphInputFloat
    • ScriptGraphInputFloatAsInt
    • ScriptGraphInputInt
    • ScriptGraphInputObject
    • ScriptGraphInputRect
    • ScriptGraphInputRectInt
    • ScriptGraphInputString
    • ScriptGraphInputTexture2D
    • ScriptGraphInputTilemap
    • ScriptGraphInputTilemapSet
    • ScriptGraphInputTileset
    • ScriptGraphInputVector2
    • ScriptGraphInputVector2Int
    • ScriptGraphInputVector3
    • ScriptGraphInputVector3Int
    • ScriptGraphMonoBehaviour
    • ScriptGraphParameter
    • ScriptGraphParameters
    • ScriptGraphPool
    • ScriptGraphPoolManager
    • ScriptGraphPoolManagerSingleton
    • ScriptGraphPort
    • ScriptGraphProcessor
    • ScriptGraphRunner
    • ScriptNode
    • ScriptNodeAttribute
    • SeedType
    • StringParameterField
    • Vector2IntParameterField
    • Vector2ParameterField
    • Vector3IntParameterField
    • Vector3ParameterField
  • InsaneScatterbrain.ScriptGraph.Editor
    • BoolConstantNodeView
    • BoundsConstantNodeView
    • BoundsIntConstantNodeView
    • ColorConstantNodeView
    • ConstantNodeView
    • ConstantNodeViewAttribute
    • FloatConstantNodeView
    • GroupNodeView
    • InputNodeView
    • IntConstantNodeView
    • NodeDuplicator
    • NodeFactory
    • ObjectConstantNodeView
    • OutPortEdgeConnectListener
    • OutputNodeView
    • RandomBspRoomsPreviewBehaviour
    • RectConstantNodeView
    • RectIntConstantNodeView
    • ScriptGraphContextMenu
    • ScriptGraphDebugger
    • ScriptGraphDependencyInstaller
    • ScriptGraphEditor
    • ScriptGraphInitializer
    • ScriptGraphInputEditor
    • ScriptGraphRunnerEditor
    • ScriptGraphValidator
    • ScriptGraphView
    • ScriptGraphViewSelection
    • ScriptGraphViewWindow
    • ScriptNodeView
    • ScriptNodeViewAttribute
    • ScriptNodeViewFactory
    • ScriptNodeViewTypesRegistry
    • StringConstantNodeView
    • Urls
    • Vector2ConstantNodeView
    • Vector2IntConstantNodeView
    • Vector3ConstantNodeView
    • Vector3IntConstantNodeView
  • InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
    • ConstantEntryRegistry
    • DefaultEntryRegistry
    • EntryData
    • EntryFactory
    • GraphEntryRegistry
    • IEntryRegistry
    • InputParametersEntryRegistry
    • ISearchFilter
    • NodeSearchWindow
    • NodeType
    • OutputParametersEntryRegistry
    • ParametersEntryRegistry
    • PortFilter
  • InsaneScatterbrain.Serialization
    • ArraySerializer<T>
    • BoundsIntSerializer
    • BoundsSerializer
    • DataBag
    • DefaultArraySerializer
    • IDeserializer
    • ISerializer
    • RectIntSerializer
    • RectSerializer
    • Serializer
    • Vector2IntSerializer
    • Vector3IntSerializer
  • InsaneScatterbrain.Services
    • Disposer
    • Rng
    • Texture2DFactory
    • Types
  • InsaneScatterbrain.Threading
    • IMainThreadCommand
    • IMainThreadCommandHandler
    • IMainThreadCoroutineCommand
    • IMainThreadCoroutineCommandHandler
    • MainThread
    • MainThreadCommand
    • MainThreadCommandHandler
    • MainThreadCoroutine
    • MainThreadCoroutineCommand
    • MainThreadCoroutineCommandHandler
    • MainThreadUpdater
  • InsaneScatterbrain.Versioning
    • IVersioned
    • SerializedVersion
    • VersionedMonoBehaviour
    • VersionedScriptableObject

Class OutPort

Out ports can be added to nodes as a means to output data from the node.

Inheritance
System.Object
ScriptGraphPort
OutPort
Inherited Members
ScriptGraphPort.Name
ScriptGraphPort.Type
ScriptGraphPort.Owner
ScriptGraphPort.Create<TPort, TValue>(String, IScriptNode)
ScriptGraphPort.Create<TPort>(String, Type, IScriptNode)
ScriptGraphPort.OnBeforeSerialize()
ScriptGraphPort.OnAfterDeserialize()
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
public class OutPort : ScriptGraphPort

Properties

ConnectedInPorts

Gets the in ports that this out port is connected to. Returns an empty list if it's unconnected.

Declaration
public ReadOnlyCollection<InPort> ConnectedInPorts { get; }
Property Value
Type Description
ReadOnlyCollection<InPort>

IsConnected

Return true if this node is connected to another node, false otherwise.

Declaration
public bool IsConnected { get; }
Property Value
Type Description
System.Boolean

IsFlaggedUnconnected

Gets/sets the unconnected flag. If this flag is set to true, the port will be considered to be unconnected, even if it does actually have a connection with another port.

Declaration
public bool IsFlaggedUnconnected { get; set; }
Property Value
Type Description
System.Boolean

Methods

Connect(InPort)

Connects this out port to the given in port.

Declaration
public void Connect(InPort inPort)
Parameters
Type Name Description
InPort inPort

The in port to connect to.

Create(String, Type, IScriptNode)

Factory method to create an out port.

Declaration
public static OutPort Create(string name, Type type, IScriptNode owner)
Parameters
Type Name Description
System.String name

The out port's name.

Type type

The out port's type.

IScriptNode owner

The owning node. Usually the node that it's part of.

Returns
Type Description
OutPort

The new out port.

Disconnect(InPort)

Disconnect this out port from the given in port.

Declaration
public void Disconnect(InPort inPort)
Parameters
Type Name Description
InPort inPort

The in port to disconnect from.

DisconnectAll()

Disconnect all connected in ports from this out port.

Declaration
public void DisconnectAll()

Get()

Gets the data from this port's result provider, which is set through Set. If no result provider has been assigned, null is returned.

Declaration
public object Get()
Returns
Type Description
System.Object

The data, or null if no result provider is set.

Get<T>()

Gets the data from this port's result provider, which is set through Set. If no result provider has been assigned, the default value for the port's type will be returned.

Declaration
public T Get<T>()
Returns
Type Description
T

The data, or the default if no result provider is set.

Type Parameters
Name Description
T

The value's type.

Set(Func<Object>)

Declaration
public void Set(Func<object> result)
Parameters
Type Name Description
Func<System.Object> result

Set<T>(Func<T>)

Sets the result provider, which provides the result for the Get calls.

Declaration
public void Set<T>(Func<T> result)
Parameters
Type Name Description
Func<T> result

The result provider.

Type Parameters
Name Description
T

The type the result provider returns.

In This Article
Back to top Generated by DocFX