Whats wrong with this?
transform.position.y = 0.012f;
?
Whats wrong with this?
transform.position.y = 0.012f;
?
You cant store an integer like that. You may want to try transform.position = new Vector3(0, 0.012f, 0);
I don’t think you could have made the question any more vague.
in uJS : nothing is wrong with it.
in C# : I think you may have to construct a new Vector first
Vector3 newPos = new Vector3( transform.position.x, 0.012f, transform.position.z );
transform.position = newPos;