Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Get GameObject's Origin?

Discussion in 'Scripting' started by BlueSin, Feb 13, 2014.

  1. BlueSin

    BlueSin

    Joined:
    Apr 26, 2013
    Posts:
    137
    Resolved.
     
    Last edited: Feb 13, 2014
  2. rageingnonsense

    rageingnonsense

    Joined:
    Dec 3, 2014
    Posts:
    99
    There is a special place in hell for people who do not post their solution
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    The answer is Transform.position ...
     
    aer0ace likes this.
  4. rageingnonsense

    rageingnonsense

    Joined:
    Dec 3, 2014
    Posts:
    99
    Haha yeah I realized like... immediately after I hit send. I should drink my coffee BEFORE I post.
     
  5. RavenOfCode

    RavenOfCode

    Joined:
    Apr 5, 2015
    Posts:
    869
    There is a 'edit' button. Maybe drink a mountain dew? That might help. ;)
     
  6. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,085
    Nice - you just made this entire thread utterly useless for future generations.
     
    RavenOfCode likes this.
  7. aer0ace

    aer0ace

    Joined:
    May 11, 2012
    Posts:
    1,513
    Are you sure it's not Transform.localPosition? ;)
     
    Kiwasi likes this.
  8. rageingnonsense

    rageingnonsense

    Joined:
    Dec 3, 2014
    Posts:
    99
    It's both! Just depends on the need. Working with the Mesh directly? localPosition. Otherwise position. I needed it for a render thing, so world position was perfect.