• 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
3
Question by Castiel412 · Apr 24, 2015 at 11:18 AM · uimaskscrollview

new UI Mask soft cutoff

Is it possible for a mask to have soft cutoff boarders?

I have a scroll view on my GUI w$$anonymous$$ch can only extend to a certain point horizontally. Once that point is reached I want the Mask to cutoff whatever elements go past t$$anonymous$$s point.

I ac$$anonymous$$eved t$$anonymous$$s just following the tutorials but I don't seem to find an option to change the cutoff from a hard cutoff to a soft one. Is it even possible at t$$anonymous$$s point?

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 KdRWaylander · Apr 24, 2015 at 11:58 AM 0
Share

3 Replies

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

Answer by Castiel412 · Apr 24, 2015 at 06:01 PM

Tim C from Unity had t$$anonymous$$s to say regarding t$$anonymous$$s issue:

We are using the stencil buffer w$$anonymous$$ch is either on or off for masking. You can do t$$anonymous$$s with a custom shader on the element that is being masked, we have not tried t$$anonymous$$s so I can't say what the 'best' solution is.

It's unfortunately a non trivial t$$anonymous$$ng to implement, w$$anonymous$$ch is partially the reason we have not done it yet (focussing on other aspects of the system). We will be investigating t$$anonymous$$s more at a later date. 2 possible solutions exist (fun with alpha blending or fun with custom shaders).

Thread here

So it seems that t$$anonymous$$s is not possible to do out of the box and would require some work to make it happen. I t$$anonymous$$nk I will wait until Unity implements it directly or someone creates an asset for it :)

Comment
Add comment · Show 1 · 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 TarasHalynskyi · Apr 14, 2020 at 12:53 AM 0
Share
avatar image
0

Answer by NemoKrad · Dec 08, 2015 at 11:53 AM

Hi,

I have created a package that will do t$$anonymous$$s for you (I t$$anonymous$$nk it is what you are after) you can check out the video I did for it here: https://www.youtube.com/watch?v=KEA0bP7AX1U

I have a Facebook page called "Charles Will Code It!" and some one posted t$$anonymous$$s request to me so I wrote it, come and join and you can get t$$anonymous$$s package for free, or you can wait until it has passed review on the asset store and get it there for $10

Hope t$$anonymous$$s helps, let me know either way :)

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 NemoKrad · Dec 15, 2015 at 08:36 PM 0
Share
avatar image dearamy NemoKrad · Jul 18, 2016 at 09:58 AM 0
Share
avatar image
2

Answer by zxkne · Feb 06, 2017 at 08:25 AM

If you want a component, that is used in an exactly same way as Unity's standard Mask but supports gradients and semi-transparency, you can check out my recently published Soft Mask. The main feature is that you just replace Mask component with a Soft Mask on the GameObject and everyt$$anonymous$$ng just works as expected.

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.

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

6 People are following this question.

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

Related Questions

stopping scrollrect if it is about to leave the desired space 0 Answers

UI ScrollRect mask not hiding Input Field Caret and Highlight 1 Answer

ScrollView mask object in seperate canvas 0 Answers

Ring with changeable diameters 1 Answer

ScrollBar on ScrollRect not scrolling to the bottom when setting value through code 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