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 Lethil · Feb 11, 2012 at 06:49 AM · meshimportblender

Blender mesh reverts to original position when starting game

My friend has created a mesh that I've placed as a child to another mesh in my game. However, when I start the game, the mesh reverts to the original position it was in when I imported the mesh.

I also happen to notice that the position coordinates are bold. Could someone please help?

Thanks!

Comment
Add comment · Show 3
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 syclamoth · Feb 11, 2012 at 06:50 AM 1
Share

Does the object have an animation on it? Sometimes, the animation will force an object's position to reset on the first frame.

avatar image Lethil · Feb 11, 2012 at 06:58 AM 0
Share

Nope. It's just a static cannon. I've attempted to position the cannon as a child beside a parent mesh. I'm able to move it into place in the editor, but when I start the game, it returns to the initial x,y,z positions.

avatar image Peyotle · Feb 21, 2012 at 12:27 PM 1
Share

All objects from blender by default are imported with empty animation. $$anonymous$$ake sure that you set "Animations - Generation" to "don't import".

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Mahamed9628 · Feb 11, 2012 at 03:16 PM

In that case I usually set object's parenting to other object. For example your imported object has coordinates 0,0,0. It will keep 0,0,0 anyway. But if you set its parent to other (empty) object, it will keep 0,0,0 in local space. And then just move parent object.

Comment
Add comment · Show 1 · 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 Mahamed9628 · Feb 11, 2012 at 06:27 PM 0
Share

I said it cause parent of your object is $$anonymous$$ESH. $$anonymous$$ain idea is to try something not imported, something like empty object.

avatar image
0

Answer by n8 · Feb 17, 2012 at 08:27 PM

I am having this same issue. The gentleman from this post seems to have pinpointed the problem in that Unity 3.5 and blender 2.61 (and apparently 2.62) have issues importing. I have found that if instantiate a default cube (from within Unity) you can then go in and swap out the mesh in the mesh renderer to the one you imported. That "seems" to work most of the time as a work around.

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
avatar image
0

Answer by Peyotle · Feb 20, 2012 at 08:48 AM

I'm have a same problem with 3.5. Exporting models from older versions of blender (2.58a, 2.59) don't make difference.

update: Sorry. Problem was in imported empty animation.

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
avatar image
0

Answer by jceipek-2 · Mar 14, 2012 at 06:24 AM

In cases where the object has an armature and animations associated with it, I haven't had any problems at all.

It seems to only happen for me when I make a static object in Blender and import it into Unity. In that case, unchecking the animation box works well (see this post). As far as I can tell, there is no need to use the mesh swapping trick suggested by n8.

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

Instantiate an imported blender mesh 2 Answers

Problems importing curves from blender into Unity 3d 2 Answers

Apply materials to imported meshes 0 Answers

How do i avoid shared vertices? 3 Answers

Blender to unity issue 1 Answer


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