Struct NodeMemoryInput<TTag, TBufferToMove> | Data Flow Graph | 0.12.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Struct NodeMemoryInput<TTag, TBufferToMove>

    Component for specifying a memory mapping from an entity to a node.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.DataFlowGraph
    Syntax
    public struct NodeMemoryInput<TTag, TBufferToMove> : IComponentData where TTag : INodeMemoryInputTag where TBufferToMove : struct, IBufferElementData
    Type Parameters
    Name Description
    TTag

    A unique type tag to associate memory mappings with a particular instantiation of MemoryInputSystem<TTag, TBufferToMove>.

    TBufferToMove

    The type that this system should move.

    Constructors

    NodeMemoryInput(NodeHandle, InputPortID)

    Sets up a mapping of to the given data input buffer port of the given node.

    Declaration
    public NodeMemoryInput(NodeHandle node, InputPortID port)
    Parameters
    Type Name Description
    NodeHandle node
    InputPortID port

    NodeMemoryInput(NodeHandle, InputPortID, Int32)

    Overload of NodeMemoryInput(NodeHandle, InputPortID) targeting a port array with an index parameter.

    Declaration
    public NodeMemoryInput(NodeHandle node, InputPortID portArray, int arrayIndex)
    Parameters
    Type Name Description
    NodeHandle node
    InputPortID portArray
    Int32 arrayIndex

    Properties

    ArrayIndex

    Declaration
    public ushort ArrayIndex { get; }
    Property Value
    Type Description
    UInt16

    Node

    Declaration
    public NodeHandle Node { get; }
    Property Value
    Type Description
    NodeHandle

    Port

    Declaration
    public InputPortID Port { get; }
    Property Value
    Type Description
    InputPortID

    Methods

    Create<TDefinition>(NodeHandle<TDefinition>, DataInput<TDefinition, Buffer<TBufferToMove>>)

    See NodeMemoryInput(NodeHandle, InputPortID).

    Declaration
    public static NodeMemoryInput<TTag, TBufferToMove> Create<TDefinition>(NodeHandle<TDefinition> node, DataInput<TDefinition, Buffer<TBufferToMove>> port)
        where TDefinition : NodeDefinition, new()
    Parameters
    Type Name Description
    NodeHandle<TDefinition> node
    DataInput<TDefinition, Buffer<TBufferToMove>> port
    Returns
    Type Description
    NodeMemoryInput<TTag, TBufferToMove>
    Type Parameters
    Name Description
    TDefinition

    Create<TDefinition>(NodeHandle<TDefinition>, PortArray<DataInput<TDefinition, Buffer<TBufferToMove>>>, Int32)

    Overload of NodeMemoryInput(NodeHandle, InputPortID) targeting a port array with an index parameter.

    Declaration
    public static NodeMemoryInput<TTag, TBufferToMove> Create<TDefinition>(NodeHandle<TDefinition> node, PortArray<DataInput<TDefinition, Buffer<TBufferToMove>>> portArray, int arrayIndex)
        where TDefinition : NodeDefinition, new()
    Parameters
    Type Name Description
    NodeHandle<TDefinition> node
    PortArray<DataInput<TDefinition, Buffer<TBufferToMove>>> portArray
    Int32 arrayIndex
    Returns
    Type Description
    NodeMemoryInput<TTag, TBufferToMove>
    Type Parameters
    Name Description
    TDefinition
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023