Interface IMsgHandlerGeneric<TMsg> | Data Flow Graph | 0.19.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IMsgHandlerGeneric<TMsg>

    Alternate variant which can be used in place of IMsgHandler<TMsg> when an INodeData struct implementation would otherwise need to implement two incompatible IMsgHandler<TMsg> interfaces. A common use of this variant would be for a node which has an input of generic type and other input(s) of non generic type(s). In this scenario, the node could use IMsgHandlerGeneric<TMsg> to implement the handler for its generic input, and normal IMsgHandler<TMsg>s for other inputs.

    Namespace: Unity.DataFlowGraph
    Syntax
    public interface IMsgHandlerGeneric<TMsg>
    Type Parameters
    Name Description
    TMsg

    Methods

    HandleMessage(MessageContext, TMsg)

    Declaration
    void HandleMessage(MessageContext ctx, in TMsg msg)
    Parameters
    Type Name Description
    MessageContext ctx
    TMsg msg
    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