Unity MASKING - Ultimate Guide | Unity UI & Sprite Tutorial

preview_player
Показать описание
This tutorial will show you how to mask Unity UI and sprite elements very easily. I'm also using a wonderful asset from mob Sakai that allows us to easily soft mask UI in Unity. I'll show you everything based on these examples:

- Basic Unity Rect Mask 2D
- Unity Mask (Using a custom sprite shape)
- SoftMask to create smooth corners (With a custom shape)
- SoftMask to create UI scrolling (Using ScrollRect)
- Sprite Masks

🎁 Get OVER 160+ Scripts, Projects and premium content on my PATREON HERE:

·························································································

🔥Unity Materials / Files & More:

🔥 UNITY SUBSCRIPTIONS:

·························································································

💰BIG DISCOUNTS on my website, for my UNITY ASSETS:

💬Join the Community Discord:

💝 Make a donation to the channel:

·························································································

⬇️ SpeedTutor Puzzle Assets:

⬇️ SpeedTutor Best Selling Assets:

⬇️SpeedTutor Model Packs:

My Assets include: Gas Mask, Flashlight, Generator, Themed Key , Padlock, Phone, Chess Puzzle, Lever, Valve Puzzle, Fuse Box & Safe Systems. Cardboard, Debris, Massive Models and more!

························································································

⭐ Connect with me:

·······················································································
#speedtutor #unity #masking
Рекомендации по теме
Комментарии
Автор

Sometimes you don't have to wear a mask to make this work in Unity, I'll show you how today! :D

SpeedTutor
Автор

I'M BACK TO UNITY BABY!! boy, I sure have missed a lot of your videos after a busy month! Time to binge watch them all!!

theterminator
Автор

You have a great way of explaining your process man, always enjoy these tutorials.

deadbroadcastpc
Автор

First comment :) and I love your videos!

agroxk
Автор

In the cutout mask, how to make clicks to work on the cutout area and not work on the remaining area ?

rohitvishwakarma
Автор

Hi, is it possible apply soft mask in a Sprite masking? thanks.

Javi-Aledo
Автор

I have a problem, I have to create a smart glasses, I want to show ui wordspace of some people only in the glasses, I try to use sprite mask (but it works only with objects not with ui element) and ui mask (but it hides only the children), how can I do this?

leonardocafissi
Автор

Thank you! So with this, it will be possible to create an ink transition like Frost Punk UI then play a video inside the mask for instance?

himtortons
Автор

Hey Thanks for the tutorial. very nice explained. What if I wanted to use a material instead of a background image (a sprite unlit image, for UI elements) Because I notice that if you, for example, write something in text mesh pro, create a mask component in it, and assign a UI image as a children, it will be masked fine. But if instead of a texture image, I want to use a material for the image component, the mask doesnt work anymore.

murilojonesarruda
Автор

Thank you for the tutorial. I use a sprite mask in my game, but no matter what I do it doesn't show up after I press play. Could you please help?

BlueHat
Автор

When I try to add the soft mask from the git url, it doesn't seem to register. I then did the manual installation of the package but it isn't working, the maskable object component can't be added to anything because it's abstract.

EDIT: I actually think I got it working now, somehow.

EDIT 2: It works, sort of. The masking graphic has a weird partial edge in it so the underneath object is only partially masked.

EDIT 3: So the visual kerfuffle is actually an editor rendering problem, but looks normal in game.

Koreyite
Автор

Any reason why all the elements inside this softmask appear purple, as if they are not rendering?

Capskiy
Автор

The soft mask would be a lot more convenient to use if I didn't have to use just images and nest the children. I think I do have a workaround. Since I can't detach the children without breaking the script, instead I can set the children to have a foster parent then after I'm done doing transforms, I reunite the children with the original parents.

Koreyite
Автор

Hello, great thanks !
And a question)
Can we hide video behind the mask ?

Exmain
Автор

Looking forward for Super Ultimate Guide with Custom Range covered

aleksandrkuziakov
Автор

My goal is to create a few soft masks to cut out of a black screen, and reveal the game as the player goes. I have done this by making a few cascading soft circles with the black rectangle as the child of those cascading circles. I am not sure how to implement this in code though (YET).

Koreyite
Автор

I want to mask UI, but don't want the parent to contain the mask component,
that is, I want a mask component on a free object not on parent coz I will be changing the size of parent and this is causing me to change in masking area,
What can I do, Please help.

Sprite mask is perfect, in that I am not forced to attach it to only parent, can't this type of thing done for UI ?

akash_the_phenomenal
Автор

I'm a beginner and finding answers for what I want to do in Unity is just as hard as figuring it what I want to do it seems. But I am working with UI elements, animating with animation track.,
I have 2 scenes - I want one scene to star wipe to the scene behind it. But I can't find anything specific to what I need to do. Any ideas? Thanks

darrylblake
Автор

"Ultimate" guide, I came here looking how to use sprite masks to make them affect only certain gameobjects, but this ultimate guide really omitted sorting groups totally. -_-

PhazonBlaxor
Автор

It's almost 2022 and we still can't have soft mask without using external assets. I hate this engine.

Lyserg