- Home /
vehicle control unity 5
hello, i m using unity 5 vehicle control with my own car ,but there is an error NullReferenceException: Object reference not set to an instance of an object UnityStandardAssets.Vehicles.Car.CarController.Start () (at Assets/Standard Assets/Vehicles/Car/Scripts/CarController.cs:64) can anyone suggest me that how to add reference of my car.
Answer by Landern · Mar 19, 2015 at 01:40 PM
You need to make sure that you have all 4 wheel meshes setup, the line of code you're referring to iterates over all for wheels, you're missing elements.
You can see all four assigned on the prefab from the standard assets
Answer by pugnaciousg · Oct 24, 2017 at 08:47 PM
@Landern I have this same problem (1 of 2 errors) but my wheel meshes are set up and I still have this issue. I started Unity yesterday btw.