İ can not find da wae. Pls help me with code i am making a build system. But only for X and Z not for Y. And that gameobject is insede of our charcter.
:I
… Assuming what you’re looking for is to round values to the grid, you can simply… round the values to the grid:
var pos = transform.position;
transform.position = new Vector3(
Mathf.Round( pos.x ),
Mathf.Round( pos.y ),
Mathf.Round( pos.z )
);
That didnt work Y cannot be changed and it is in my karakter ve are moving together so position is has to be for charcter.
Have you covered any Unity starter tutorials? They will get you up and running quickly and simply. Just scroll to the top of this page and click on “Learn”. Lots of good stuff there.