BoneHeadSpark
Member
Hello! A few months ago, I made this thread here:
That worked perfectly at the time, but I don't think the solution works in the my version of unity anymore. For starters, the original camera's API is now obsolete, so the code here:
var cameraController = camera.GetComponent<CameraController>();
gets automatically updated to a different line of code in my version of unity. I don't know if that's the cause of my problem, but regardless, my code no longer assigns the camera to my player after the player selection screen, and I don't know how to fix it. Any ideas?
Canvas elements/scripts (like the SlotIdMonitor) can't find the character I've spawned in.
Due to the nature of my game, I have to spawn in all of my characters at runtime. I've notice this is causing chaos with the Opsive kit, such as scripts and such, as struggling to find my characters with the Player tag. I've solved this in a roundabout way (disabling the elements, then...
opsive.com
That worked perfectly at the time, but I don't think the solution works in the my version of unity anymore. For starters, the original camera's API is now obsolete, so the code here:
var cameraController = camera.GetComponent<CameraController>();
gets automatically updated to a different line of code in my version of unity. I don't know if that's the cause of my problem, but regardless, my code no longer assigns the camera to my player after the player selection screen, and I don't know how to fix it. Any ideas?