How do i determin the point on a gameobject that is most to the right (highest x value).

  • \$\begingroup\$ There is no direct conversion, unless you are developing a 2D game with a fixed camera. Can you edit your answer, including more information as defined in the help center: gamedev.stackexchange.com/help \$\endgroup\$
    – Pip
    Jan 1 '14 at 23:41
  • \$\begingroup\$ Take a look at Orthello and how they set up the camera. One unit in Unity is equal to one pixel in their case. \$\endgroup\$
    – user15805
    Jan 1 '14 at 23:43
  • \$\begingroup\$ Sorry guys. This was a bad question i edited it. \$\endgroup\$
    – Daarwin
    Jan 2 '14 at 0:09

This was a bad question, i admit it. But for who ever that comes along later i solved the 2nd quesiton like this.

var bounds = gameObject.renderer.bounds.max.x;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.