Quantcast
Channel: Answers by "thelackey3326"
Viewing all articles
Browse latest Browse all 30

Answer by thelackey3326

$
0
0
Camera.main will only return the *first* camera found called "MainCamera". If you have two Third Person Control scripts running, and two GameObjects tagged as MainCamera, then one of the scripts will find the *other* object and not the camera it's attached to. You should probably augment the script so that you can assign the camera that you want it to control, i.e. make a public Camera field and drag the Camera to it in the inspector.

Viewing all articles
Browse latest Browse all 30

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>