Is there a way to change the transform component to accept decimals/doubles instead of float values?
Thanks in advance,
Sean
Is there a way to change the transform component to accept decimals/doubles instead of float values?
Thanks in advance,
Sean
No. Internally, Unity (and every other game engine I can think of) use floats to represent positions and rotations. But you can just cast any parameter values to floats when setting them, e.g.:
transform.position = new Vector3((float)3.45d, (float)1.23d, (float)5.87d);