Unity 2022.3.6
we’ve just updated to 5.2 -
and we’re hitting an error in VirtualCamController - this block -
//
#if ENABLE_LEGACY_INPUT_MANAGER
if(enableControls)
{
if (Input.GetKeyDown(toLeft)) { currentPosition += new Vector3(-stepTranslation, 0, 0); }
if (Input.GetKeyDown(toRight)) { currentPosition += new Vector3(stepTranslation, 0, 0); }
if (Input.GetKeyDown(down)) { currentPosition += new Vector3(0, -stepTranslation, 0); }
if (Input.GetKeyDown(up)) { currentPosition += new Vector3(0, stepTranslation, 0); }
if (Input.GetKeyDown(backward)) { currentPosition += new Vector3(0, 0, -stepTranslation); }
if (Input.GetKeyDown(forward)) { currentPosition += new Vector3(0, 0, stepTranslation); }
if (Input.GetKeyDown(rolldown)) { currentRotation *= Quaternion.Euler(Vector3.right * stepRotation); }
if (Input.GetKeyDown(rollup)) { currentRotation *= Quaternion.Euler(Vector3.right * -stepRotation); }
}
#endif
I think stepTranslation and stepRotation aren’t declared anywhere -
- We have input handling set to BOTH - so this block is being compiled -
i’ve just moved the package to packages for now - and fixed this locally -
thanks