Getting set up with Unity & Arduino

If you haven’t done so already, follow the instructions provided on our page to get set up with the Uduino asset and Arduino.

Unity + Arduino 1

Unity setup

  1. Create a new project (or open your Met visit assignment!)
  2. Add a light source to your project

Screenshot 2025-03-20 at 1.43.19 PM.png

Add Uduino to project

  1. Install the Uduino Asset into your project
  2. Add the Uduino prefab into your project. Go to Project > Assets > Uduino > Drag and drop ‘Uduino’ Prefab into Hierarchy window.
  3. Add Uduino library to Arduino. In the inspector, click ‘Select Path’ > Navigate to your User name > Command + Shift + “.” to reveal library folder > Libraries > Arduino > Libraries > Choose.

Screen Recording 2025-02-20 at 2.06.25 PM.mov

  1. Once you’re 100% sure the path is correct, click “Add Uduino libary to Arduino”.
  2. Change project settings, click “Fix Now”

Arduino setup

We’ll be using a distance sensor to modify the lighting in our scene. Setup your distance sensor following this diagram…

image.png