Hi everyone,
im trying to make a 3d shooter that allows you to change cameras using tab. Now that’s not so hard but when i go into the 1st person one (3rd person is default) it keeps using the 3rd person controller, which gets me some really weird controls, so i need to change cameras and controllers when i press tab, note: the 3rd person camera is the freelookcamerarig included in the standard assets targeted on the player (Not as a child object). I’d prefer to have the camera switching being a smooth motion of zooming in and out. thanks for taking the time to answer my question.
Good day @beaukeboy_unity
What you mean by controllers? The user controller for move the player? What you need to change? I understand the controls will be the same.
If not, you need to create both controllers settings, and change them depending on wich camera is active.
And how you change cameras? cameras goes SetActive(false) / SetActive(true) ? If is this, you can use something like this
if (Camera3rd.activeInHierarchy)
{
3rdPersonController.SetActive(true)
1stPersonController.SetActive(true)
}
else if (Camera1st.activeInHierarchy)
{
3rdPersonController.SetActive(false)
1stPersonController.SetActive(true)
}
Bye
Accept the answer if helped.