Camera Script

MrQuaid

Member
I'm having a weird issue with the camera finding the player on builds. Does fine in editor but if I leave the player not assigned it will not find the player. What's weirder is its random for scenes. So maybe I am doing something wrong, but not sure. My goal is to be able to have different player controllers to spawn in later, so its possible the player chooses a different class for the scene so dragging in the player model isn't the best option for me.



1. Ultimate Character Controller
2. Unity Version 2018.3.0f2 (64-bit)
3. Bug Description - No errors, so again may be my set up.
4. Steps to Reproduce- for me just create a scene, add camera, add player and build and run.
5. The full error message - none.
 
I'm building for windows. Some scenes when I build the camera doesn't find the player. My scenes are pretty empty now besides a terrain. Works perfect in editor. I'm looking at the link you sent me now, maybe I can add a script to add after the scene loads.
 
Top