Hello,
The (0,0) position of an object texture is in the left-bottom of the object, suppose i clicked on the object in that exact position, how can i get these (0,0) ?
i tried to do something like this but it wasn’t precise :
objectPoint = Camera.main.WorldToScreenPoint (transform.position);
objectSize = new Vector3 (targetTexture.width, targetTexture.height, 0);
mousePoint = Input.mousePosition;
PixelPoint.x = mousePoint.x - (objectPoint.x - (objectSize.x / 2));
PixelPoint.y = mousePoint.y - (objectPoint.y - (objectSize.y / 2));
thank you