docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Add a sensor to a scene

    Add a sensor component to a GameObject and configure it to publish simulation data.

    The following procedure uses CameraSensor as an example. Refer to Sensor types reference for the properties other sensor types expose.

    To add a camera sensor to a scene:

    1. Add a Camera component to a GameObject.
    2. Add the CameraSensor component to the same GameObject.
    3. In the Inspector, configure Update Rate, Horizontal FOV, Image Width, and Image Height.
    4. Set output topics on the Image Publisher, Depth Publisher, and Camera Info Publisher nodes.

    Make sure a connector is reachable through ConnectorInjector so the sensor's publishers can send messages. Refer to Get started.

    Additional resources

    • Introduction to sensors
    • Sensor types reference
    • Import a robot
    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)