# Updating from 5.0.1 to 5.2 Unity SDK - VirtualCamController errors -

**URL:** <https://community.stereolabs.com/t/updating-from-5-0-1-to-5-2-unity-sdk-virtualcamcontroller-errors/10882>\
**Category:** Unity\
**Created:** [February 24, 2026, 10:08am UTC](https://community.stereolabs.com/t/updating-from-5-0-1-to-5-2-unity-sdk-virtualcamcontroller-errors/10882 "2026-02-24T10:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rosss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/rosss/32/4388_2.png) [@Rosss](https://community.stereolabs.com/u/Rosss)\
**Post date:** [February 24, 2026, 10:08am UTC](https://community.stereolabs.com/t/updating-from-5-0-1-to-5-2-unity-sdk-virtualcamcontroller-errors/10882/1 "2026-02-24T10:08:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [February 24, 2026, 12:43pm UTC](https://community.stereolabs.com/t/updating-from-5-0-1-to-5-2-unity-sdk-virtualcamcontroller-errors/10882/2 "2026-02-24T12:43:46Z")

</div>

Hi,

I’ve just merged a fix, it should be good now. Thanks for the report !
