Skip to main content
3 events
when toggle format what by license comment
Apr 17, 2024 at 14:23 comment added CheckerT Yeah I meant transform.position.y. And also what I just realized is that you cant just call cam.transform.y = camY, you need to do cam.transform.position = new Vector3(cam.transform.position.x, camY, cam.transform.position.z)
Apr 17, 2024 at 10:10 comment added DMGregory transform does not have a property y. You probably meant to cache the value of transform.position to a local variable, overwrite its .y, then reassign the changed version back to transform.position.
Apr 17, 2024 at 5:08 history answered CheckerT CC BY-SA 4.0