• 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 d_kieffer · Dec 31, 2014 at 11:25 AM · ui

Can a UI Image be placed in front of another interactable UI object and not interfere with that object?

I have a lot of text. It's nicely laid out and scrollable because it's a child of a panel with UI Scroll Rect, UI Image, and UI Mask. Works fine but…

At the top of this parent panel when a user scrolls I want the text to look like it's fading out when it goes towards the top of the panel. My first thought was to use the UI Image and UI Mask on the panel for a smooth fade, but unfortunately it seems like this method only supports a 1 bit mask. I need a nice smooth fade, so the next thing I tried was placing a new UI Image with a smooth gradient fade in the alpha channel and tinted to the background color. Voila, now when the text is scrolled it looks like it's fading out, but…

Now the text that is underneath the image is no longer scrollable. Meaning that the Image seems to be interfering with the lower Panel's Scroll Rect, intercepting the user input. Is there a way to keep the image over the text, but still allow users to scroll in the red area (see pic)?

alt text

screen shot 2014-12-30 at 12.08.54 pm.png (31.2 kB)
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 pmak · Mar 26, 2015 at 06:05 PM 0
Share

was this ever solved?

1 Reply

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

Answer by DiegoSLTS · Mar 26, 2015 at 06:13 PM

Add a "Canvas group" component to the Image and set "Blocks raycasts" to false.

Comment
Add comment · Show 4 · 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 d_kieffer · Mar 26, 2015 at 06:18 PM 0
Share

Yes, DiegoSLTS is right. That was my solution in the end. "Add a 'Canvas group' component to the Image and set 'Blocks raycasts' to false."

avatar image pmak · Mar 26, 2015 at 07:56 PM 0
Share

any idea on how to tackle this same effect with a transparent background? 3D text and a shader?

avatar image d_kieffer · Mar 26, 2015 at 08:04 PM 0
Share

$$anonymous$$eaning have the text fade out into the background, as opposed to just a flat color? Alas, if only the UI $$anonymous$$ask component wasn't 1-bit! $$anonymous$$y guess is you'll probably need to script something that tells the 3D letter's material to get more and more transparent as it gets nearer to the top of the screen. Not entirely sure though…

avatar image pmak · Mar 27, 2015 at 01:24 AM 0
Share

Awesome. Works. This information needs to be in a more accessible place. Thanks!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

My UI objects only show up in a wireframe mode/transparent , how to make it visible? 0 Answers

DropDown menu(add item from input field): Object reference not set to instance of an object C# 1 Answer

Cannot accessing text in InputField Array 1 Answer

I created a system that tracks number of matches have 1 Answer

Setting negative value for rectTransform sizedelta !!! 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