> For the complete documentation index, see [llms.txt](https://vsxgames.gitbook.io/universal-vehicle-combat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vsxgames.gitbook.io/universal-vehicle-combat/spaceships/speed-ui.md).

# 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
