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
9
Question by m.obeid · Oct 03, 2012 at 05:31 PM · reflectionmirrormirrorreflection

How to mirror an object (reverse its sides)?

I've built a 3D model that is to be used in an application where it is projected on a mirror. This model will be viewed from the mirror so I need a way (a function) to mirror the object in Unity so that when it is projected on the mirror it will look in its proper orientation.

Comment
Add comment · Show 1
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 sethoover109 · Nov 09, 2020 at 12:56 PM 0
Share

For 2d just rotate Y-axis 180 degrees.

2 Replies

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

Answer by Demigiant · Oct 03, 2012 at 05:35 PM

You could just set its transform's X scale to -1, and rotate it accordingly.

Comment
Add comment · Show 12 · 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 Sparrowfc · Mar 12, 2013 at 08:18 AM 0
Share

O$$anonymous$$G! I'm so stupid. I was gona write a editor script to create a new model asset. Luckily I see this before I start. lol

avatar image xvampire · Aug 14, 2013 at 06:05 PM 3
Share

this will cause normal map got flipped , it is not wise solution.

avatar image Calm-Chen · Feb 10, 2014 at 07:23 PM 0
Share

Thank you. I thought it would be something harder.

avatar image imwilecoyote · Oct 24, 2014 at 10:05 PM 0
Share

I used this to flip objects without any negative effects. Worked great.

avatar image utyasheva.irina imwilecoyote · Nov 12, 2015 at 05:10 AM 2
Share

Negative effects exists : negative scale - broken batching!

avatar image saschandroid utyasheva.irina · Nov 12, 2015 at 07:04 AM 0
Share

I used a parent with a negative scale and set the 'mirrored' model as child (I didn't want to scale the model directly). Are there still negative effects?

Show more comments
avatar image tylerwongj · Nov 16, 2019 at 01:09 AM 1
Share

This works, only problem is if you have box colliders nested underneath them which may cause them to give a warning that you cannot use negative values on box collider scale values.

avatar image makaka-org tylerwongj · Nov 17, 2020 at 05:29 PM 0
Share

yeah, same problem. So how are you dealing with that if you need box colliders?

avatar image A-Tunga makaka-org · Feb 03, 2021 at 09:11 AM 0
Share

I think you have to build two collider and switch them

Show more comments
avatar image
0

Answer by mike_kennedy989 · Apr 14, 2016 at 08:00 PM

How would one do this with a prefab hierarchy that's the child of a empty game object?

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

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

Related Questions

Problem with reflection probe 0 Answers

Cubemap/Reflection size/scaling issue? 0 Answers

Problem with the mirror view made by reflection probe in android build 0 Answers

MirrorReflection with Multiple Cameras 1 Answer

Best option to create real mirrors in terms of performance 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