UNITY SPRITE MASK TUTORIAL - EASY
Вставка
- Опубліковано 3 жов 2024
- Welcome back to BlackthornProd !
In this quick and easy Unity tutorial I will show you how to use an awesome feature called the SPRITE MASK ! This tool lets you dynamically hide and show parts of a sprite !
link to PLAY MY GAMES : blackthornprod...
link to PLAY BENEATH THE SKIN : blackthornprod...
I can't believe how easy this actually is. I thought it would be a difficult task. Thank you for such a good tutorial.
Dude I love your tutorials so much. And you have a friendly and enthusiastic personality that is really nice to hear while you talk during your tuts. Thanks for all the help!
Thank you Noa. I always wanted to know this.
I'd use this for Lighting.
Everything that emits Light in the Game, should turn Parts of the Black Overlayy Invisible,
which makes Parts of the Level Underneath visible.
This is exactly how I wanted to do 2d Lightning in Pitch Dark Levels.
Now I can finally do this!
this is the same thing i searched for to do in my game
I love it! Thanks for going over things that seem obvious to you. People who are new to tools often need all the direction they can get
This video has inspired me to try out Unity. It seems like i can make really cool stuff with it once i get good enough!
Would love to see a full tutorial on how you made that game!! It looks amazing!!!
Thanks Rafat :) !! I'll definitely think about making a video on that !! Cheers and stay tuned !
@@Blackthornprod dude i want this video pls=))
This is amazing, thanks! I don't know why you don't have as many subs as Brackeys, but you are just as good as them if not better with your tutorials!
your art is just WAY TOO GOOD.
i am staying tuned
Wow dude, first of all thank you for the tutorial, i started learning unity lately and your vids are really inspiring for me. Secondly, your game is really nice and meaningfull.Congrats for it.
Thanks so much Noa! This video is a few years old, but it's still super helpful :)
I have just heard a great message.
I have just seen a great tutorial.
I have just found out about a great person.
BlackthornProd you are amazing!
How on earth does this guy not have a Million Subs???
we live in a society
Bottom text
This is exactly what I needed for my project. Thank you!
Your tutorials are so good, thanks a lot.
For anyone curious, it's not necessary to make the 2 sprites on the same spritesheet, you can do the exact same thing with separate sprites. I think he should've made this clear :p
Great tutorial young man
This is cool, is there a way to "draw" a sprite mask? So that a user can permanently reveal a sprite by scratching a surface sprite away?
Seriously so simple but so awesome. Thanks!
Thank you for resolving my puzzle. :D
Just what I needed. Thank you very much sir.
this is a great, straighforward tutorial, thank you!
Awesome teacher
Clear and great tutorial video.
Classic Blackthornprod! :D I still get confused by the sprite mask and telling Unity which sprite to be affected by which mask.. :P
Thank you for your tutorial
Awesome! Thank you
Wow! Your Tutorial video is awesome and also the feature - "Sprite Mask". Thank You :)
Awesome. And very cool game at the end
thank you for being clear with explaining this :)
this is sooooo helpful! thanks
amazing! thank you
Excellent Tutorial!
Thanks bro you are the best ❤️
Thanks ! That's so appreciated :) ! Stay tuned !
@@Blackthornprod COMING IN HOT, 2 YEARS LATER, TO TELL YOU: You're still the best dude, thanks ahaha
Hey, how about a soft alpha mask? I've been knocking my head and can't find a way to get this effect
how to move sprite mask in game tab ?
thanks for the tutorial it was amazing
Omg this is what i needed
oh my god the thumbnail holy shit this can't be a coincidence
Great Artwork!
Keap it up
dude, thanks, you got the right mindset!
This helped me alot! Thanks alot!
Thanks for the video.
By the way.. do you normally talk like this or its for the video?
Really Well explained :) keep It Up !
Thanks ! I'l glad the video helped !
thank you so much !
Уровни в ночи с фонариком будут готовы! Юху!!!
Great tutorial video highlighting a really useful tool, thank you!
I have a request for a future guide - I have been exploring the tile mapping feature in Unity and can implement basic collisions between game elements and the tile map. My issue is with interaction with the tiles during runtime.
For example having the player change
or destroy a tile. I have seen tiles destroyed during runtime in a tutorial video on UA-cam but it was poorly explained. (Video Can be found my searching ‘unity destroy tile map’, can’t link right now)
Thanks again for the tutorial :)
Hey :) ! I'm really happy the tutorial was of use ! I've not really explored the Unity tile map features yet but I will put it on my TO DO list to make a tutorial about it in the near future :) !! I think it will definitely make for an interesting and informative video ! (maybe show the tool by making a basic bomber man game)
Blackthorn Prod Bomberman is a really good example, I’ve considered the idea that it might just be a case of having to instantiate/physically place tiles as their own objects on the same grid, but there must be a way to do it using the tile map.
There is just so little support for it!
Hey :) ! Yep I'm sure there is ! I'll try and get cracking on tile maps as soon as possible, but I must admit I'm currently swamped with other projects I really want to advance on (such as my game : the fire of belief) ! Cheers !
Thanks for the tutorial, helped me a lot! I was wondering if you should put that kind of "youtube time bookmark thingy" to the exact point in the video, where you show the step-by-step instructions? In this video, at 1:33. This way it would be more practical for people who already know what the mask is used for, but just want to quickly see how its done in unity.
I know the video is old, but you are awesome :)
this is awesome! didn't think that it would be so easy to use! btw, is there a video on how he made the "Beneath The Skin" game?
Thanks dude
2 months of holiday sounds like Sweden
Well done
Thanks Top Date :) !
You're hilarious by the way you speak! Haha keep it up man!
Excellent video!
Being good, enlightened, selfless is what separates us from animals, very nice game.
Sadly, not even close :/
Seeing as how people can sometime be so apathic towards other beings or how on the other hands, some animals can be selfless and caregiving.
What does separates us from animal, then?
Well... I don't have a clue. But it for sure is not "being good" (whatever THAT is).
Thankyouuuu
Very helpful
Thank you ! really nice tutorial that gave me ideas ! But I am wondering how to do that with 3D objects. Do you know how? :)
Hey :) ! I'm delighted to hear the video helped !
I can't think right now of a way to acheive this effect in 3D but if I do find a way I will definitely make a tutorial about it :) ! I'm sure there is some simple way... Cheers :) !
I have found something that can be good to start with ! Layers and culling mask. If we can stack 2 cameras with different culling mask and activate or deactivate one it would be possible to show and hide 3D models... I am a beginner so maybe there are many other ways. Have a look at this video :) ua-cam.com/video/ESmdiLAY8Bs/v-deo.html
Nice !!
Thanks you very much!
amazing explanation... I really like your videos :)
amazing
Great Tutorial!!
Well done Mate!
That is a cool game you have, graphics are really nice, did you do them yourself or you have an artist?
he does them himself.
Thanks, this was very helpful. Interesting game.
Soo coool
that's Awesome !
thx so much
Well done child! I like your depth at that age and how you project it. ;)
That's kinda weird
Edit: That's really weird
@@trentonpaul6376 that's absolutely weird
that's questionably weird
thanks!
Cool 😃
Bro In my Unity Project I can see it working in the scene view but when I play the game it only affects thr scene view not the game view
This helped me SO MUCH. I am using it for moon phases - it actually looks awesome! How can I make the moon sprite glow a little bit sort of like your spite glowed in Beneath the Skin?
Try adding bloom in post processing
i whant to do this, but with canvas image.
You could use the normal mask component for UI mask.
Really nice tutorial! But I got a question. Using the masks, could be possible to have like 2 sprites overlaping? Like a sprite of a blinking light on a part of a character, so that way, the character can change his animations like standing to running and jumping, but the light would still have it's own cicle within the character.
Thanks very good tutorial. But how can I do this with UI images? I really need to know
what a refreshing idea :D
nice, very nice
hey, i dont know how to make the sprite mask follow my cursor.. How do i make it??
Put a script on the object called FollowCursor and have the following code:
using UnityEngine;
public class FollowCursor : MonoBehavior
{
void Update()
{
transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition);
}
}
What this does is every frame, it gets the position of the mouse cursor on the screen, converts screen coordinates to world coordinates, and sets the gameObject's transform's position to the position of the mouse cursor in world space.
@@omnikar5 THANK YOU!!!!!!!!!!!!!
you were yelling at me the whole time :(
How to make is smooth instead of hard mask?
Wow thanks! Is there any way to edit the collider according to the sprite mask?
thank u
Is there a way I could give these collisions. But only under one condition. So I could make platforms that are hidden unless I lay the sprite mask thing over it to reveal them. And only when they’re visible you can jump on them.
Sorry if that doesn’t make much sense
can this be used for Image?
How do we move the mask? BTW Great Tutorial.
Put a script on the object called FollowCursor and have the following code:
using UnityEngine;
public class FollowCursor : MonoBehavior
{
void Update()
{
transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition);
}
}
What this does is every frame, it gets the position of the mouse cursor on the screen, converts screen coordinates to world coordinates, and sets the gameObject's transform's position to the position of the mouse cursor in world space.
Yeah seriously that's kind of an important element.
Thanks
Hey you are awesome!!! But i have a question. Is it possible to make sprite mask with pixels? I mean that can i make random mobs spawning visible only with sprite mask. If you understand me Please tell me about that.
how did you activate it? like save it or export it
mask for me is horrible is not using a mask and then it enables it automaticly and hides the other sprites :/
Is there a way to combine two different masks for the same effect? Like say a two player game where two people could both reveal a hidden layer using their own masks?
hi.. can you please tell me how did u manage the jaggy edges that mask leaves on the sprite ? thanks for your tutorials
Easy enough video but how do you make the sprite mask follow the mouse cursor?
Somehow for me its not working. If I change the sprite which has to be inside to "inside mask" it disappears and even if i hover over with the sprite mask in scene mode it doesnt show up.
For anyone using the sprite mask and the Lightweight Renderpipes and if you have issues, just set up the rendering layer of your mask. That fixed it for me.
Hi, I've watched this video several times over, step by step but the Sprite Mask absolutely will not work.
There is no "mask interactions" in my inspector when highlighting a sprite.
You need to first add a sprite mask to your project
How do you do this if want to hide a MeshRenderer?
4:12
@BlackthornProd (sry I tagged u)
how did you made the sprite mask to follow the mouse cursor?
plz help
what if there's more than one sprite mask? How do you make objects only be affected by certain sprite masks?
IS there a way to create shaped mask for animations on a timeline? If I have two UI elements and I want to wipe from one scene to the other using a shaped mask. (star)