docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface MessageTypeRegistry.IGenericInvokable

    Supports type-erased generic method invocation on a registered message type.

    Namespace: Unity.SimulationPro.Foundation
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    public interface MessageTypeRegistry.IGenericInvokable
    Remarks

    Implement this interface to perform generic operations (such as subscribing with a type-erased callback) that require the concrete message type at runtime.

    Methods

    Invoke<T>(object)

    Invokes a generic operation for the message type T.

    Declaration
    object Invoke<T>(object arg) where T : IMessage
    Parameters
    Type Name Description
    object arg

    An arbitrary argument passed to the invocation.

    Returns
    Type Description
    object

    The result of the invocation, or null.

    Type Parameters
    Name Description
    T

    The concrete IMessage type.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)