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

[SCRIPT] Change Pivot Point

Discussion in 'Scripting' started by WendygoGames, Dec 16, 2012.

  1. WendygoGames

    WendygoGames

    Joined:
    Dec 11, 2012
    Posts:
    53
    I have definitely ran into this issue, and I know a lot of other people have too. So I decided to whip up a script that can be used over and over again to change a pivot point of a GameObject. Really its changing the mesh, so there is an option called "Shared Mesh", whether you want it to actually change the mesh itself, or if you want it to create another instance for the game object then move it.
    IF YOU CHECK "SHARED MESH", IT WILL CHANGE HOW THE MESH LOOKS EVERYWHERE IN YOUR PROJECT

    To use:
    1. Put .cs Script into new folder "Editor" at root
    2. Go to Custom>Move Pivot Point

    I thought I would give out this script here, if enough people use it I might put it in the Asset Store. But until then, here ya go.
    Download Here

    My page for it here.
     
    Last edited: Dec 16, 2012
  2. chubbspet

    chubbspet

    Joined:
    Feb 18, 2010
    Posts:
    1,220
    dont know if I will use this, but thanks for sharing!
     
  3. ganesh-pingale

    ganesh-pingale

    Joined:
    Dec 19, 2012
    Posts:
    11
    Thanks Dude!!
     
  4. gaitat

    gaitat

    Joined:
    May 29, 2013
    Posts:
    6
    It would be great if you could post the code here or at some place that does not require money. Thank you.
     
  5. tanoshimi

    tanoshimi

    Joined:
    May 21, 2013
    Posts:
    297