Tag Info

New answers tagged


Your xyz position isn't likely to be kept as text so what you don't want to do is try to encode it as UTF8. If you don't need to do anything with the coordinates then you should just turn it into a string before encoding, i.e: string pos = GameObject.Find("Object").transform.position.toString(); byte[] data = Encoding.UTF8.GetBytes(pos); Or if you need to ...


They are not. Webgl coordinates refers to the positions of pixels in a canvas element and CSS describes the position of any HTML element in a page. You have to do math to apply the correct transformation if you wish align them. The default coordinate space for webgl is -1 being on one side of canvas and +1 on the other side (assuming viewport is same as ...

Top 50 recent answers are included