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 at 06:18 PM
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 ;
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
138 People are following this question.
FPSController Prefab - How can i change the Z position of my camera?
Tilting Head with Camera from the FirstPersonController Script FPS controller provided in (Unity 5)
Basic question about Unity functionality
How to get the camera to follow a prefab?
How to see a prefab from inside it?