Hey, I’m wanting to have the objects in my scene snap to a grid and so Ive been trying to round the x, y and z values of these objects to the nearest full numbers hoping it would give this effect. My script uses Mathf.round which Ive read does this, however what I have wrote doesn’t do anything at all, can someone help me out here?
function Update (){
Mathf.Round(transform.position.x);
Mathf.Round(transform.position.y);
Mathf.Round(transform.position.z);
}