Camera switching
Hey everyone, I purchased an asset for a camera switcher off the asset store. It works fine if I put my vehicle in the scene and make cameras a child of the vehicle. But I am spawning different vehicle types from prefabs and when I do this, the camera switcher does not find the cameras on the vehicle. I have tried contacting the seller with no luck so I came here for advice.
Any help on getting this to work would be great!
Answer by Cuttlas-U · Apr 18, 2017 at 06:18 PM
hi; u may have as many car in your scene as u want like 100 cars :)
but the camera cant be like that cause it cost your performance;
the cameras usually has a target variable or some thing that u set your car in it so camera can follow it;
so the only thing u need to do here is attach a script to each car that u want then when it is selected change that variable of camera to the selected car; and u are good to go ;
Your answer
Follow this Question
Related Questions
Tilting Head with Camera from the FirstPersonController Script FPS controller provided in (Unity 5) 2 Answers
Basic question about Unity functionality 0 Answers
Adding components to prefab instead of player 0 Answers
How to get the camera to follow a prefab? 2 Answers
How to see a prefab from inside it? 1 Answer