Home
  • Manual
  • Node Index
  • API
  • Changelog
Search Results for

    Show / Hide Table of Contents
    • InsaneScatterbrain
      • AStarPathfinder
      • Calc
      • Color32EqualityComparer
      • EqualityComparer
      • RandomPathWalker
      • 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
      • Vector3Extensions
      • Vector3IntExtensions
    • InsaneScatterbrain.MapGraph
      • AStarPathsNode
      • AddFloatToVector2Node
      • AddFloatToVector3Node
      • AddFloatsNode
      • AddIntToVector2IntNode
      • AddIntToVector3IntNode
      • AddIntsNode
      • 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
      • CellularAutomataSmoothingNewNode
      • 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
      • DrawPathsNode
      • DrawPointsNode
      • DrawRectsNode
      • DrawShortestPathNode
      • EmptyTextureNode
      • ExtractAreasNode
      • ExtractColorNode
      • ExtractPointsNode
      • ExtractPointsWithNeighboursNode
      • FastNoiseEnum
      • FlipTextureNode
      • FractalType
      • GameObjectsFromTextureFactory
      • GenerateAreaGraphNode
      • GenerateMstAreaGraphNode
      • GenerateRstAreaGraphNode
      • HexagonalGridOffsetType
      • IObjectTypeEntry<T>
      • IObjectTypeSet<TType, TObject>
      • IObjectType<TEntry, TObject>
      • InvertMaskNode
      • LinePathsNode
      • ListPool<TValue>
      • LoadTextureData
      • MapGraphGraph
      • MapGraphTilemapPrefab
      • Mask
      • MaskPool
      • MaxFloatsNode
      • MaxIntsNode
      • MergeAreasNode
      • MergeMasksNode
      • MergePathsNode
      • MergePointPairsNode
      • MergePointsNode
      • MergeTilemapsNode
      • MinFloatsNode
      • MinIntsNode
      • MultiplyFloatsNode
      • MultiplyIntsNode
      • MultiplyVector2ByFloatNode
      • MultiplyVector2IntByIntNode
      • MultiplyVector2IntsNode
      • MultiplyVector2sNode
      • MultiplyVector3ByFloatNode
      • MultiplyVector3IntByIntNode
      • MultiplyVector3IntsNode
      • MultiplyVector3sNode
      • NamedColor
      • NamedColorNode
      • NamedColorSet
      • NoiseNode
      • ObjectTypeEntry<T>
      • ObjectTypeSetScriptableObject<TType, TEntry, TObject>
      • ObjectTypeSet<TType, TEntry, TObject>
      • ObjectType<TEntry, TObject>
      • OpenObjectTypeSet<TType, TEntry, TObject>
      • Outliner
      • PerlinNoiseFillTextureNode
      • PointsToAreasNode
      • PoolInitializer
      • PowerNode
      • PrefabSet
      • PrefabType
      • PrefabTypeEntry
      • RandomBoolNode
      • RandomBspRoomsNode
      • RandomBspTreeNode
      • RandomColorNode
      • RandomExtensions
      • RandomFloatNode
      • RandomIntNode
      • RandomNode<T>
      • RandomNoiseNode
      • RandomPointsNode
      • RandomPointsPerAreaNode
      • RandomRectsNode
      • RandomRngStateNode
      • RandomVector2IntNode
      • RandomVector2Node
      • RandomVector3IntNode
      • RandomVector3Node
      • RandomWalkerNode
      • RandomWalkerPathsNode
      • RandomlyFillTextureNode
      • RandomlyStampTilemapsNode
      • 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
      • TextureToNoiseDataNode
      • TextureToTilemapNode
      • TileType
      • TileTypeEntry
      • TilemapData
      • TilemapDataPool
      • TilemapSet
      • TilemapToDataNode
      • TilemapToTextureNode
      • TilemapType
      • TilemapTypeEntry
      • Tileset
      • TransparentColorNode
      • Vector2IntComparer
      • Vector2IntFromFloats
      • Vector2IntFromInts
      • Vector2IntToInts
      • Vector2IntToVector2
      • Vector3IntComparer
      • WaveformFunctionCollapseNode
    • InsaneScatterbrain.MapGraph.Editor
      • AStarPathsNodeView
      • AboutWindow
      • AddRandomEdgesNodeView
      • ApplyMaskNodeView
      • AreaSpecialPointsNodeView
      • CellularAutomataSmoothingNodeNewView
      • CellularAutomataSmoothingNodeView
      • CellularDistanceFunctionConstantNodeView
      • CellularReturnTypeConstantNodeView
      • ChangeTextureSizeNodeView
      • ConnectionsNodeView
      • CornerPointsNodeView
      • DataSetListBase<T>
      • DataSetList<T>
      • DomainWarpFractalTypeNodeView
      • DomainWarpTypeConstantNodeView
      • DrawAreasNodeView
      • DrawBorderNodeView
      • DrawCirclesNodeView
      • DrawConnectionsBiasedRandomWalkNodeView
      • DrawGridNodeView
      • DrawManhattanConnectionsNodeView
      • DrawNoiseThresholdNodeView
      • DrawOutlineNodeView
      • DrawPathsNodeView
      • DrawPointsNodeView
      • DrawRectsNodeView
      • DrawShortestPathConnectionsNodeView
      • EmptyTextureNodeView
      • EnumConstantNodeView<T>
      • ExtractAreasNodeView
      • ExtractColorNodeView
      • ExtractPointsNodeView
      • ExtractPointsWithNeighboursNodeView
      • FlipTextureNodeView
      • FractalTypeNodeView
      • GenerateAreaGraphNodeView
      • GenerateMstAreaGraphNodeView
      • GenerateRstAreaGraphNodeView
      • Initializer
      • InputParametersList
      • InvertMaskNodeView
      • LinePathsNodeView
      • 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
      • RandomPointsNodeView
      • RandomPointsPerAreaNodeView
      • RandomRectsNodeView
      • RandomWalkerNodeView
      • RandomWalkerPathsNodeView
      • RandomlyFillTextureNodeView
      • RandomlyStampTilemapsNodeView
      • ReplaceColorNodeView
      • ResizeTextureNodeView
      • RotateTextureNodeView
      • RotationType3dConstantNodeView
      • RotationalSymmetryNodeView
      • ScaleTextureNodeView
      • ScaleTextureToNodeView
      • ScaleTextureVector2NodeView
      • ScriptGraphAssetUpdater
      • ScriptNodeViewExtensions
      • ShiftTextureNodeView
      • StampNodeView
      • TextureConstantNodeView
      • TextureToMaskNodeView
      • TileTypeEntryList
      • TileTypeList
      • TilemapConstantNodeView
      • TilemapPrefabEditor
      • TilemapSetConstantNodeView
      • TilemapSetEditor
      • TilemapToTextureNodeView
      • TilemapTypeEntryList
      • TilemapTypeList
      • TilesetConstantNodeView
      • TilesetEditor
      • TransparentColorNodeView
      • UpdateAction_1_10
      • UpdateAction_1_14
      • UpdateAction_1_15
      • UpdateAction_1_2
      • UpdateAction_1_26_1
      • UpdateAction_1_30
      • UpdateChecker
      • WaveformFunctionCollapseNodeView
    • InsaneScatterbrain.Pooling
      • IPool
      • PoolManager
      • Pool<T>
    • InsaneScatterbrain.RandomNumberGeneration
      • Rng
      • RngState
    • InsaneScatterbrain.ScriptGraph
      • BoolParameterField
      • BoundsIntParameterField
      • BoundsParameterField
      • Color32ParameterField
      • ComponentDependency
      • ConstantNode
      • ConsumerNode
      • CopyData
      • CopyPaste
      • DataDependency
      • DataSetItem
      • DataSetScriptableObject<TItem>
      • DataSetScriptableObject<TItem, TOpenSet>
      • DataSet<T>
      • ExecutionGraph
      • ExecutionGraphBuilder
      • ExplicitInPortTypesAttribute
      • ExplicitOutPortTypesAttribute
      • ExplicitPortTypesAttribute
      • FloatParameterField
      • GroupNode
      • IConsumerNode
      • IDataSet
      • IDataSetItem
      • IDataSet<T>
      • IInstanceProvider
      • INode
      • IOpenDataSet<T>
      • IParameterField
      • IPool
      • IPoolInitializer
      • IPreparable
      • IPreviewBehaviour
      • IProcessorNode
      • IProviderNode
      • IScriptGraphInstanceProvider
      • IScriptNode
      • IdDeduplicator
      • InPort
      • InPortAttribute
      • IncompatiblePortTypeException
      • InputNode
      • IntParameterField
      • NewInstanceProvider
      • NewScriptGraphInstanceProvider
      • NodeEdge
      • ObjectParameterField
      • OpenDataSet<T>
      • OutPort
      • OutPortAttribute
      • OutputNode
      • PairVector2IntParameterField
      • PoolManager
      • PoolManagerInitializer
      • PoolManagerSingleton
      • Pool<T>
      • Pools
      • PortAttribute
      • PortNotFoundException
      • ProcessGraphNode
      • ProcessorNode
      • ProviderNode
      • RectIntParameterField
      • RectParameterField
      • ReferenceNode
      • ReferenceNodeConnection
      • RequiredPortNotConnectedException
      • RngExtensions
      • ScriptGraphComponents
      • ScriptGraphEditorInfo
      • ScriptGraphGraph
      • ScriptGraphInput
      • ScriptGraphInputBool
      • ScriptGraphInputBounds
      • ScriptGraphInputBoundsInt
      • ScriptGraphInputColor32
      • ScriptGraphInputFloat
      • ScriptGraphInputFloatAsInt
      • ScriptGraphInputInt
      • ScriptGraphInputObject
      • ScriptGraphInputRect
      • ScriptGraphInputRectInt
      • ScriptGraphInputString
      • ScriptGraphInputTexture2D
      • ScriptGraphInputTilemap
      • ScriptGraphInputTilemapSet
      • ScriptGraphInputTileset
      • ScriptGraphInputVector2
      • ScriptGraphInputVector2Int
      • ScriptGraphInputVector3
      • ScriptGraphInputVector3Int
      • ScriptGraphInput<T>
      • ScriptGraphMonoBehaviour
      • ScriptGraphParameter
      • ScriptGraphParameters
      • ScriptGraphPool
      • ScriptGraphPoolManager
      • ScriptGraphPoolManagerSingleton
      • ScriptGraphPort
      • ScriptGraphProcessor
      • ScriptGraphRunner
      • ScriptNode
      • ScriptNodeAttribute
      • SeedType
      • StringParameterField
      • Vector2IntParameterField
      • Vector2ParameterField
      • Vector3IntParameterField
      • Vector3ParameterField
    • InsaneScatterbrain.ScriptGraph.Editor
      • BoolConstantNodeView
      • BoolPortConstantFieldFactory
      • BoundsConstantNodeView
      • BoundsIntConstantNodeView
      • CellularDistanceFunctionPortConstantFieldFactory
      • CellularReturnTypePortConstantFieldFactory
      • ColorConstantNodeView
      • ColorPortConstantFieldFactory
      • ComponentDependencyListFactory
      • ConstantNodeView
      • ConstantNodeViewAttribute
      • DataDependencyListFactory
      • DomainWarpFractalTypePortConstantFieldFactory
      • DomainWarpTypePortConstantFieldFactory
      • FloatConstantNodeView
      • FloatPortConstantFieldFactory
      • FractalTypePortConstantFieldFactory
      • GroupNodeView
      • IPortConstantFieldFactory
      • InputNodeView
      • IntConstantNodeView
      • IntPortConstantFieldFactory
      • NodeDuplicator
      • NodeFactory
      • NoiseTypePortConstantFieldFactory
      • ObjectConstantNodeView
      • ObjectPortConstantFieldFactory
      • OutPortEdgeConnectListener
      • OutputNodeView
      • OutputParameterResultFormatter
      • OutputParameterResultWindow
      • RandomBspRoomsPreviewBehaviour
      • RectConstantNodeView
      • RectIntConstantNodeView
      • RotationType3dPortConstantFieldFactory
      • RotationalSymmetryPortConstantFieldFactory
      • ScriptGraphContextMenu
      • ScriptGraphDebugger
      • ScriptGraphDependencyInstaller
      • ScriptGraphEditor
      • ScriptGraphInitializer
      • ScriptGraphInputEditor
      • ScriptGraphRunnerEditor
      • ScriptGraphSearchBar
      • ScriptGraphValidator
      • ScriptGraphView
      • ScriptGraphViewSelection
      • ScriptGraphViewWindow
      • ScriptNodeView
      • ScriptNodeViewAttribute
      • ScriptNodeViewFactory
      • ScriptNodeViewTypesRegistry
      • StringConstantNodeView
      • StringPortConstantFieldFactory
      • TexturePortConstantFieldFactory
      • TilemapPortConstantFieldFactory
      • TilemapSetPortConstantFieldFactory
      • TilesetPortConstantFieldFactory
      • Urls
      • Vector2ConstantNodeView
      • Vector2IntConstantNodeView
      • Vector2IntPortConstantFieldFactory
      • Vector2PortConstantFieldFactory
      • Vector3ConstantNodeView
      • Vector3IntConstantNodeView
      • Vector3IntPortConstantFieldFactory
      • Vector3PortConstantFieldFactory
    • InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
      • ConstantEntryRegistry
      • DefaultEntryRegistry
      • EntryData
      • EntryFactory
      • GraphEntryRegistry
      • IEntryRegistry
      • ISearchFilter
      • InputParametersEntryRegistry
      • NodeSearchWindow
      • NodeType
      • OutputParametersEntryRegistry
      • ParametersEntryRegistry
      • PortFilter
      • SearchTreeBuilder
    • 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 ConsumerNode

    The base node for any node that consumes (takes) data. In other words, any node that has one more in ports.

    Inheritance
    object
    ScriptNode
    ConsumerNode
    OutputNode
    Implements
    IConsumerNode
    IScriptNode
    INode
    Inherited Members
    ScriptNode.Graph
    ScriptNode.Initialize()
    ScriptNode.LoadDependencies(DependencyContainer)
    ScriptNode.OnSaveDependenciesState
    ScriptNode.OnRestoreDependenciesState
    ScriptNode.SaveDependencyStates()
    ScriptNode.RestoreDependencyStates()
    ScriptNode.Get<T>()
    ScriptNode.Position
    ScriptNode.Note
    ScriptNode.Id
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: InsaneScatterbrain.ScriptGraph
    Syntax
    [Serializable]
    public abstract class ConsumerNode : ScriptNode, IConsumerNode, IScriptNode, INode

    Properties

    InPorts

    Gets all the in ports.

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

    Node

    In case of proxy classes (such as ProcessorNode uses) it's useful to explicitly set the node's type.

    Declaration
    protected virtual IConsumerNode Node { get; }
    Property Value
    Type Description
    IConsumerNode

    Methods

    AddIn(string, Type, IScriptNode, InPort)

    Adds an in port with the given name of the given type.

    Declaration
    public InPort AddIn(string name, Type type, IScriptNode owner = null, InPort port = null)
    Parameters
    Type Name Description
    string name

    The port's name.

    Type type

    The port's data type.

    IScriptNode owner

    The node that is marked as the owner. If this is null that will be this node (which is probably what you want).

    InPort port

    The existing port.

    Returns
    Type Description
    InPort

    The new in port.

    AddIn<T>(string, IScriptNode)

    Adds an in port with the given name of the given type.

    Declaration
    public InPort AddIn<T>(string name, IScriptNode owner = null)
    Parameters
    Type Name Description
    string name

    The port's name.

    IScriptNode owner

    The node that is marked as the owner. If this is null that will be this node (which is probably what you want).

    Returns
    Type Description
    InPort

    The new in port.

    Type Parameters
    Name Description
    T

    ClearPorts()

    Declaration
    public void ClearPorts()

    GetInPort(string)

    Returns the in port with the given name.

    Declaration
    public InPort GetInPort(string name)
    Parameters
    Type Name Description
    string name

    The name.

    Returns
    Type Description
    InPort

    The in port.

    HasInPort(string)

    Returns whether the in port with the given name exists on the node.

    Declaration
    public bool HasInPort(string name)
    Parameters
    Type Name Description
    string name

    The name.

    Returns
    Type Description
    bool

    True if the port exists, false otherwise.

    MoveIn(int, int)

    Move the in port to a different index

    Declaration
    public void MoveIn(int oldIndex, int newIndex)
    Parameters
    Type Name Description
    int oldIndex

    The port's old index.

    int newIndex

    The port's new index.

    OnLoadInputPorts()

    This method should contain all the in port initialization code. In other words, it should contain all the AddIn calls for the node.

    Declaration
    public virtual void OnLoadInputPorts()

    RemoveIn(string)

    Removes the in port with the given name from the node.

    Declaration
    public void RemoveIn(string name)
    Parameters
    Type Name Description
    string name

    The port's name.

    RenameIn(string, string)

    Renames the in port.

    Declaration
    public void RenameIn(string oldName, string newName)
    Parameters
    Type Name Description
    string oldName

    The port's old name.

    string newName

    The port's new name.

    Events

    OnInPortAdded

    Event is triggered everytime an in port is added to the node.

    Declaration
    public event Action<InPort> OnInPortAdded
    Event Type
    Type Description
    Action<InPort>

    OnInPortMoved

    Event is triggered everytime an in port is moved.

    Declaration
    public event Action<InPort, int> OnInPortMoved
    Event Type
    Type Description
    Action<InPort, int>

    OnInPortRemoved

    Event is triggered everytime an in port is removed from the node.

    Declaration
    public event Action<InPort> OnInPortRemoved
    Event Type
    Type Description
    Action<InPort>

    OnInPortRenamed

    Event is triggered everytime an in port is removed from the node.

    Declaration
    public event Action<InPort, string, string> OnInPortRenamed
    Event Type
    Type Description
    Action<InPort, string, string>

    Implements

    IConsumerNode
    IScriptNode
    INode
    In this article
    Back to top Generated by DocFX