Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by NeMewSys · Aug 20, 2012 at 09:12 PM · positionobjectmovechangepivot

changing pivot's placement

Hi guys!

I'm trying to change my prefab's pivot position but I can't do it, not even from objects already placed in the world. I've tried to play with the buttons in the interface's toolbar (http://docs.unity3d.com/Documentation/Manual/LearningtheInterface.html), but it always moves the object, not the pivot.

How can I achieve this?

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by ScroodgeM · Aug 20, 2012 at 09:35 PM

pivot is a zero-point for model. all model's vertices are stored in XYZ relative to this point. so, to move pivot you should update all vertices. so:

solution 1

move it in 3d software and reexport

solution 2

make a script that will update all mesh vertice's coords

solution 3

make an empty GameObject and make your transform as child for emptyGO. move child relative to emptyGO to position you need, use emptyGO as pivot.
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NeMewSys · Aug 21, 2012 at 02:28 PM 0
Share

Too bad Unity can't handle that in a simple way. Anyway thanks, that solved my problem. :)

avatar image ScroodgeM · Aug 23, 2012 at 09:27 PM 0
Share

your task needs some actions with geometry source (solution 2), this is completely not unity's job 8)

this like painting a textures in unity. unity also can't handle that is simple way cause again this is not unity's job at all 8)

avatar image
0

Answer by dEusEx_Machina · Jan 30, 2019 at 09:42 PM

Hi guys, i know its a little bit too late for this answer, but I'm here in 2019 :).

So, if you're using a prefab and the pivot is off, ( not where you want it to be ), you can create an empty actor inside the prefab, add every model of the prefab inside your new empty actor, this is the tricky part.

You need to reference the prefab pivot with the grid, move your new empty actor so all the assets inside the prefabs are exactly where you want them to be ( remembering where your old pivot point was ), then unparent the assets from the new empty actor and the pivot will be exactly where you want it to be.

Note: If you have this prefabs in the scene already, you will need to rearrange your scene because the assets will change place.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Dynamically changing a decals position on a mesh surface 2 Answers

Change scripted gui text postion 0 Answers

How to move an object from one position to desired position? 0 Answers

Animated object changes position when animation is played. 1 Answer

Move one object to anothers position over time. 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges