Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
This question was closed May 09, 2015 at 03:49 PM by AlwaysSunny for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by bobmeyers · Nov 08, 2014 at 10:54 AM · uirenderingcanvas4.6

How to create a "back" side of a canvas UI element

I'm using the new 4.6 UI, and trying to create canvas UI elements that can be "flipped" to show a back side. I'm using the Canvas Render Mode "Screen Space - Camera" with a perspective camera.

Unfortunately, if I simply rotate an existing element 180 degrees, I just see an upside-down, mirrored rendering of the front side. The rendering order of the child elements is not reversed, so a child element at the "back" is still obscured by elements at the "front" (even though the entire parent has been flipped).

Is there any way to create this front/back effect using the Canvas UI?

Comment
Add comment · Show 2
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 huggaida · May 09, 2015 at 09:15 AM 0
Share

Hi there. Did some one find solution of this problem?

avatar image AlwaysSunny · May 09, 2015 at 03:49 PM 0
Share

Yes. $$anonymous$$y answer below satisfies the OP's request. That's why it's marked as the correct answer.

2 Replies

  • Sort: 
avatar image
2
Best Answer

Answer by AlwaysSunny · Nov 08, 2014 at 12:23 AM

You must want to see the flipping occur via animation, right? Otherwise you'd just swap the contents of your group-o-elements.

Well, at the exact moment all the elements are facing the camera edge-on, for all intents and purposes, the elements become invisible. During that frame, swap the contents of your group to an identically-sized "B-side" alternate version.

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
1

Answer by Umai · Nov 25, 2014 at 04:30 AM

I'm currently investigating this myself. In my case, I am implementing a "card" that can be flipped over, and then back. So the backside should have another surface. I will use an Image or Button for this. For now this seems to do the trick, but I don't know if it will work well down the line:

In the flip animation, add a keyframe at rotation of 90 degrees. There you can add another image. Also, set scale to -1 depending on what axis you rotate the image. I flip the card over on the Y axis, so I needed to invert the scale of the X axis to get the backside of the card to not be mirrored to the viewer.

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 huggaida · May 19, 2015 at 08:40 AM 0
Share

Solved this by adding a standart material (unity 5) to a material slot of the component of GUI button. At the top of the standart material settings in pulldown menu choose FADE mode. Supports .png with opacity. Back side of the element bacome invisile.

avatar image huggaida · May 19, 2015 at 08:41 AM 0
Share

Sorry for my English.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

LineRender width not consistent across resolutions 1 Answer

Unity 4.6 adding a Canvas Text onto a gameobject prefab?? -1 Answers

Resize WorldSpace Canvas to Fit Screensize 0 Answers

4.6 UI Image Color.Lerp 0 Answers

Custom Transparency Axis Canvas Rendering Order 0 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