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
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 which can only extend to a certain point horizontally. Once that point is reached I want the Mask to cutoff whatever elements go past this point.

I achieved this 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 this 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

$$anonymous$$mmm, I don't think so :/

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 this to say regarding this issue:

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

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

Thread here

So it seems that this is not possible to do out of the box and would require some work to make it happen. I think 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

Yeas of course. The year 2020 and developers of the whole game engine cant implement soft mask out of the box. Then who can? The community of course. $$anonymous$$aybe managers just want to improve the assets store? Hm...

P.S. It's not the first feature that requested from developers of Unity for the last few years and still not implemented.

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 everything 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
avatar image
0

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

Hi,

I have created a package that will do this for you (I think 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 this request to me so I wrote it, come and join and you can get this package for free, or you can wait until it has passed review on the asset store and get it there for $10

Hope this 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

You can now get this on the asset store :)

here

avatar image dearamy NemoKrad · Jul 18, 2016 at 09:58 AM 0
Share

This script can't cut Images in hierarchy nor in the grid group

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

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

Terminate drag while mouse is still down 0 Answers

Scrollable zooming list 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