docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMessage

    Base interface for all ROS-compatible messages in Simulation Pro.

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

    All generated and hand-written message types implement this interface. Messages are registered in MessageTypeRegistry at runtime initialization.

    Properties

    MessageTypeId

    Gets the type identifier that describes the ROS message type name and disambiguator.

    Declaration
    MessageTypeId MessageTypeId { get; }
    Property Value
    Type Description
    MessageTypeId

    Methods

    WriteTo(IMessageSerializer)

    Serializes the message fields to the provided serializer.

    Declaration
    void WriteTo(IMessageSerializer serializer)
    Parameters
    Type Name Description
    IMessageSerializer serializer

    The serializer that writes the message payload.

    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)