Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ArmelGibson · Feb 11, 2020 at 06:15 PM · spritemaskmasking

Mask a Sprite with multiple SpriteMasks?

Would it be possible to have a Sprite masked by two different Spritemasks? Specifically, to have an already masked Sprite also be masked by another SpriteMask? Here is a diagram explaining the issue I'm facing when testing:


alt text


The character portrait is supposed to be masked by SpriteMask 1 here, but they appear fully because of SpriteMask2.


Thanks, cheers~

Comment
Add comment · Show 7
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 UnityFuchs · May 29, 2020 at 01:26 PM 0
Share

I have the same issue with a similar setup. I have read, that you can fix this via the sorting layers, but thats not true.,

avatar image ArmelGibson UnityFuchs · May 29, 2020 at 09:09 PM 0
Share

That is also what I have read, but I've tried every possible configurations, without any success.

avatar image viesc123 · May 29, 2020 at 06:10 PM 1
Share

This looks like a UI. Why are you using Sprite$$anonymous$$ask/SpriteRenderer and not $$anonymous$$aks/Image components? The UI.$$anonymous$$ask has the behaviour you need I believe. Also: lovely graphics. ;)

avatar image ArmelGibson viesc123 · May 29, 2020 at 09:07 PM 0
Share

Because I need the flexibility of Sprite and Sprite$$anonymous$$ask compared to $$anonymous$$ask/Image. It looks like a UI in the mockup because it was easier to explain the issue like this, but it doesn't really look like that in game. The Sprite$$anonymous$$ask situation stays the same though.

avatar image tahers_unity · Jun 08, 2021 at 12:19 PM 0
Share

Hi, I have the same problem. Were you able to resolve this ?

avatar image ArmelGibson tahers_unity · Jun 08, 2021 at 06:22 PM 0
Share

Nope, and I'm now 100% sure there is no way of doing it directly with Unity Spritemasks.

avatar image tahers_unity ArmelGibson · Jun 08, 2021 at 07:37 PM 0
Share

This is probably the way to do it haven't figure it out yet myself: https://docs.unity3d.com/2018.4/Documentation/Manual/SL-Stencil.html

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tahers_unity · Jun 08, 2021 at 07:35 PM

This is probably the way to do it haven't figure it out yet myself: https://docs.unity3d.com/2018.4/Documentation/Manual/SL-Stencil.html

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.

Follow this Question

Answers Answers and Comments

158 People are following this question.

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

Related Questions

Mask Sprites 1 Answer

Mask Interaction outside of a Sorting Group 0 Answers

How to use a mesh as a sprite mask 1 Answer

Sprite doesn't show on Canvas, can't change to Image because I need Sprite Renderer component 0 Answers

how do i mask a sprite against a canvas? 1 Answer


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