docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MessageMetadata

    Carries contextual information about a received message, including the topic it arrived on and the time of receipt.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.SimulationPro.Foundation.Visualizations
    Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
    Syntax
    public readonly struct MessageMetadata

    Constructors

    MessageMetadata(string, float, DateTime)

    Initializes a new MessageMetadata with the specified topic, frame time, and timestamp.

    Declaration
    public MessageMetadata(string topic, float frameTime, DateTime timestamp)
    Parameters
    Type Name Description
    string topic

    The ROS topic name.

    float frameTime

    The Unity engine frame time.

    DateTime timestamp

    The wall-clock timestamp.

    Fields

    FrameTime

    The Unity engine frame time (time) at the moment the message was processed.

    Declaration
    public readonly float FrameTime
    Field Value
    Type Description
    float

    Timestamp

    The wall-clock timestamp at the moment the message was processed.

    Declaration
    public readonly DateTime Timestamp
    Field Value
    Type Description
    DateTime

    Topic

    The ROS topic name the message was received on.

    Declaration
    public readonly string Topic
    Field Value
    Type Description
    string
    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)