# Speed UI

To display the speed of a spaceship on the UI:

1. Add a **HUD Speed Display Controller** component somewhere on the vehicle
2. Set the _Engines_ field to the vehicle's **Vehicle Engines 3D** component and set the _Rigidbody_ too
3. Create an Image for the speed bar and make sure its _Image Type > Fill Method_ is set to _Filled_ (you will need to add a sprite of some kind to the Image for this setting to appear)
4. Drag the speed bar image into the _Img_ field in the inspector of the **HUD Speed Display Controller** component

If you want to display speed as a number as well:&#x20;

1. Create a text for the speed number display and add a **UVC Text TMPro UGUI** component (if it uses Text Mesh Pro) or a **UVC Text UGUI** component (if it uses Unity's UGUI)
2. Drag the component you added in step 1 into the _Speed Text_ field in the inspector of the **HUD Speed Display Controller** component you added above
