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
1
Question by Alexrose12345 · Aug 05, 2012 at 06:45 PM · guiinvisible

Make part of the GUI become invisible

I have a stage select on my game, and I want to add arrows that slide them.

Picture this:

 <-   |[Stage1]|  |[Stage2]|  |[Stage3]|   ->

I want to make it so that when you slide it right:

 <-   ge1]|  |[Stage2]|  |[Stage3]|  |[S   ->

It looks like this, cutting off the left side of the stage 1 button and a portion of the right side appears.

Now I realise this could be easily achieved by putting a texture on a higher layer on the sides like

 |LAYER|ge1]|  |[Stage2]|  |[Stage3]|  |[S|LAYER| 

And then put the arrows on the layer, however, I want the GUI to be rendered on the actual background of the game, so putting layers on would make me have to make a whole 2D screen, when currently my GUI overlays the 3D background.

So essentially, what I'm asking is, is there a way to either "cut" into the left and right side of the things as they move, or (more ideally) make a transparent GUITexture that tells everything underneath it to be transparent too?

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

1 Reply

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

Answer by Alexrose12345 · Aug 05, 2012 at 07:15 PM

I just thought:

How about as a solution, using two cameras. Would this be possible in Unity Free? What I'd need is one normal camera with the GUI arrows on it and then a second camera with the stages on it, but that camera would take up less of the screen.

Like

 -----------------------------------------------
 |      |                               |      |
 |      |          Camera2 Span         |      |
 |      |<----------------------------->|      |
 |      |                               |      |
 |      |                               |      |
 |  <-  |AGE1     STAGE2     STAGE4    S|      |
 |      |                               |      |
 |      |                               |      |
 |      |          Camera1 span         |      |
 |<------------------------------------------->|
 -----------------------------------------------

Is this possible in Unity Free?

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 whydoidoit · Aug 05, 2012 at 07:16 PM 1
Share

That would work on free. You might also want to check this out

avatar image Alexrose12345 · Aug 05, 2012 at 07:25 PM 0
Share

Thanks a lot for the link!

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

8 People are following this question.

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

Related Questions

New Unity GUI has messed up the scene camera 2 Answers

How do you get sprite to appear on HUD when collected 1 Answer

Renderer on object disabled after level reload 1 Answer

Small GUI Text Invisible in the Game View 0 Answers

Making GUI elements invisible 3 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