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 Borzi · Apr 16, 2013 at 06:06 PM · objectscaleparenting

How to parent without scale transformation?

I tried to parent 2 objects, but for some reason the object that is being turned into a child has adjusted the same scale as the parent and I don't know how to prevent this...can someone help me?

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 MD_Reptile · Apr 16, 2013 at 06:10 PM 0
Share

I think it depends what you want the behavior of the child object to be, were you just wanting them to follow each others position/rotation around, and ignore scale changes and such? you could do something like that by just assigning the position and rotation of the separate objects (without parenting anything) in code. Sometime like ObjectB.transform.position = ObjectA.transform.position; and ObjectB.transform.rotation = ObjectA.transform.rotation;

or something like that.

avatar image powerproc_chris · Apr 16, 2013 at 06:14 PM 0
Share

I'm assu$$anonymous$$g you are trying to parent these objects in code? If so, please post it so we can help you.

avatar image Borzi · Apr 16, 2013 at 06:59 PM 0
Share

Well I am still at the brink of learning to code and was hoping for a simple solution like the one by Dracorat. But I guess i'll try and start getting more in depth with such things, thank you for you help!

1 Reply

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

Answer by Dracorat · Apr 16, 2013 at 06:20 PM

You could also create a NULL object (empty object) with two null objects under it - one being a parent for the base model that has all transformations applied and one being a parent for the child you're attempting to attach. This will work best if the location of the child doesn't rely on the location of a part of the parent where that location would change.

IE, if you are just parenting something like a billboard or an object that follows it around, this will work great.

If however, this was say - a whip on a belt, it wouldn't. (but I don't see how you'd want something like that if the scale isn't designed to match.)

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

14 People are following this question.

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

Related Questions

Mesh gets squashed after parenting to camera. 0 Answers

Making objects look further away in ortho cam 1 Answer

How do i set a "object.max" scale ex.:: X axis ? 1 Answer

Is there a way to disable Unity changing the texture scaling when using multiple materials 0 Answers

Object scale 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