JustInvoke / Randomation-Vehicle-Physics

Vehicle physics system for the Unity engine.
https://justinvoke.com/game-assets/#randomation-vehicle-physics
854 stars 185 forks source link

HUD Breaks #28

Closed 7ekhed closed 3 years ago

7ekhed commented 6 years ago

Its me again. Sry, but whenever I edited the Menu just to rearrange the buttons, the HUD stopped working and various parts of the car no longer worked, like the automatic shift. Plz help, because this has happened alot. P.S. i fixed my previous issue

JustInvoke commented 6 years ago

The VehicleMenu script links certain properties to the menu buttons, one of them being automatic shifting. If you rearrange or disable certain buttons you could accidentally disable this. You could comment out the line that sets the auto shifting based on the button so that the value retains what it's set to on the prefab.

The VehicleMenu script is one of the weaker parts of this repository because it was designed for the sake of the demo scene, not so much for people to use it in their actual games. I should have designed it to be more flexible/modular; maybe sometime in the future I'll refactor it.

acttogreen commented 4 years ago

hi, can you create a demo scene with minimal hud, like rpm,speed,gear position and boost gauge or at least a tutorial to do it. thanks

JustInvoke commented 4 years ago

It's not likely, sorry.

JustInvoke commented 3 years ago

I've added a new VehicleHud script with prefabs for the HUD. Now the HUD functionality is separate from the menu. Inside the Terrain Example scene you can see where the HUD prefab was added by itself without the menu.