Speedometer

Fields

Rigid Body The rigid body of the vehicle.

Meter The UI text element.

Use Imperial Units What it says.

Animator Use a custom animator( for example an animation moving a speed dials arm)

Animator Float Variable Name A float variable will be fed in, in meters per second.

Usage

create a UI Text Component under your vehicle object, and another empty game object with this speedometer component.

Attach the rigidbody of the vehicle and the UI Text component to the slots of the speedometer, you can leave the rest option as it was, or fill it on your own request. Change the position and style of the UI Text as a normal UI element as you wish. And, remember, disabled the Canvas object at the beginning, and activate it by the events function as I present above.

A simple example here, is a meter with blue text in the right-bottom corner:

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.