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...

КОМЕНТАРІ • 161

  • @dimatadore
    @dimatadore 6 років тому +100

    I can't believe how easy this actually is. I thought it would be a difficult task. Thank you for such a good tutorial.

  • @friendlyhello
    @friendlyhello 6 років тому +17

    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!

  • @sosasees
    @sosasees 6 років тому +28

    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!

    • @kovidkhokar298
      @kovidkhokar298 Рік тому

      this is the same thing i searched for to do in my game

  • @shadoninja
    @shadoninja 5 років тому +3

    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

  • @pillough
    @pillough 5 років тому +2

    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!

  • @GawblyOG
    @GawblyOG 6 років тому +22

    Would love to see a full tutorial on how you made that game!! It looks amazing!!!

    • @Blackthornprod
      @Blackthornprod  6 років тому +11

      Thanks Rafat :) !! I'll definitely think about making a video on that !! Cheers and stay tuned !

    • @iulianailincai6843
      @iulianailincai6843 5 років тому +1

      @@Blackthornprod dude i want this video pls=))

  • @adamknight4563
    @adamknight4563 5 років тому +3

    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!

  • @progCan
    @progCan Рік тому

    your art is just WAY TOO GOOD.

  • @LearnersNation
    @LearnersNation 3 роки тому +1

    i am staying tuned

  • @reginamndii
    @reginamndii 2 роки тому

    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.

  • @doughjoughdev
    @doughjoughdev Рік тому

    Thanks so much Noa! This video is a few years old, but it's still super helpful :)

  • @hasanyasin2752
    @hasanyasin2752 4 роки тому

    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!

  • @PrussianMapping
    @PrussianMapping 5 років тому +3

    How on earth does this guy not have a Million Subs???

  • @dicegameuchiha
    @dicegameuchiha 6 років тому +16

    we live in a society

  • @TheKodiakDJ
    @TheKodiakDJ 3 роки тому

    This is exactly what I needed for my project. Thank you!

  • @misal-isahabe5281
    @misal-isahabe5281 3 роки тому

    Your tutorials are so good, thanks a lot.

  • @haachamachama7
    @haachamachama7 3 роки тому +1

    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

  • @TheIsolatedGamerz
    @TheIsolatedGamerz 3 місяці тому

    Great tutorial young man

  • @tnuoccaeht
    @tnuoccaeht 4 роки тому +3

    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?

  • @Amanda-zx7eh
    @Amanda-zx7eh 5 років тому

    Seriously so simple but so awesome. Thanks!

  • @laurentcharles7179
    @laurentcharles7179 Рік тому

    Thank you for resolving my puzzle. :D

  • @TheLeadhound
    @TheLeadhound 5 років тому +1

    Just what I needed. Thank you very much sir.

  • @THEspindoctor84
    @THEspindoctor84 3 роки тому

    this is a great, straighforward tutorial, thank you!

  • @ChapCanai
    @ChapCanai Рік тому

    Awesome teacher

  • @jianlonghuang9455
    @jianlonghuang9455 2 роки тому

    Clear and great tutorial video.

  • @BlueGooGames
    @BlueGooGames 4 роки тому

    Classic Blackthornprod! :D I still get confused by the sprite mask and telling Unity which sprite to be affected by which mask.. :P

  • @TdB_Snip3r-nf6jh
    @TdB_Snip3r-nf6jh 3 роки тому

    Thank you for your tutorial

  • @duztine
    @duztine 2 роки тому

    Awesome! Thank you

  • @purbaphalgunimishra9114
    @purbaphalgunimishra9114 4 роки тому

    Wow! Your Tutorial video is awesome and also the feature - "Sprite Mask". Thank You :)

  • @justahuman4862
    @justahuman4862 4 роки тому

    Awesome. And very cool game at the end

  • @wangtang32000
    @wangtang32000 5 років тому +1

    thank you for being clear with explaining this :)

  • @McMistrzYT
    @McMistrzYT 4 роки тому

    this is sooooo helpful! thanks

  • @skiobaldo
    @skiobaldo 3 роки тому

    amazing! thank you

  • @waltercastro2847
    @waltercastro2847 3 роки тому

    Excellent Tutorial!

  • @abdullahalsulami8440
    @abdullahalsulami8440 6 років тому +3

    Thanks bro you are the best ❤️

    • @Blackthornprod
      @Blackthornprod  6 років тому +2

      Thanks ! That's so appreciated :) ! Stay tuned !

    • @_DarkMoves
      @_DarkMoves 4 роки тому

      @@Blackthornprod COMING IN HOT, 2 YEARS LATER, TO TELL YOU: You're still the best dude, thanks ahaha

  • @Artistica3D
    @Artistica3D 5 років тому +6

    Hey, how about a soft alpha mask? I've been knocking my head and can't find a way to get this effect

  • @piyushbhatter9491
    @piyushbhatter9491 2 роки тому +1

    how to move sprite mask in game tab ?
    thanks for the tutorial it was amazing

  • @steven4565
    @steven4565 4 роки тому

    Omg this is what i needed

  • @zulimations
    @zulimations 3 роки тому

    oh my god the thumbnail holy shit this can't be a coincidence

  • @AnthonyAvvento
    @AnthonyAvvento 6 років тому +1

    Great Artwork!
    Keap it up

  • @ronnyt5914
    @ronnyt5914 4 роки тому

    dude, thanks, you got the right mindset!

  • @lemonsqueezygames2555
    @lemonsqueezygames2555 5 років тому

    This helped me alot! Thanks alot!

  • @CENB71
    @CENB71 4 роки тому

    Thanks for the video.
    By the way.. do you normally talk like this or its for the video?

  • @maxikurschner423
    @maxikurschner423 6 років тому +3

    Really Well explained :) keep It Up !

  • @erikpartila4672
    @erikpartila4672 2 роки тому

    thank you so much !

  • @Merlok_3_0
    @Merlok_3_0 4 роки тому +1

    Уровни в ночи с фонариком будут готовы! Юху!!!

  • @megamcgee
    @megamcgee 6 років тому +3

    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 :)

    • @Blackthornprod
      @Blackthornprod  6 років тому

      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)

    • @megamcgee
      @megamcgee 6 років тому +1

      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!

    • @Blackthornprod
      @Blackthornprod  6 років тому

      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 !

  • @akusep
    @akusep 5 років тому

    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.

  • @Videogueimeiro
    @Videogueimeiro 4 роки тому

    I know the video is old, but you are awesome :)

  • @matthewsterling8873
    @matthewsterling8873 5 років тому

    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?

  • @ThePancakeJedi
    @ThePancakeJedi 3 роки тому

    Thanks dude

  • @samhsmith
    @samhsmith 6 років тому

    2 months of holiday sounds like Sweden

  • @topdate155
    @topdate155 6 років тому +4

    Well done

  • @guiancarlo
    @guiancarlo 6 років тому +1

    You're hilarious by the way you speak! Haha keep it up man!

  • @chuganator
    @chuganator 6 років тому

    Excellent video!

  • @GameDevAraz
    @GameDevAraz 6 років тому +9

    Being good, enlightened, selfless is what separates us from animals, very nice game.

    • @NosAltarion
      @NosAltarion 5 років тому +2

      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).

  • @luciafernandez7006
    @luciafernandez7006 4 роки тому

    Thankyouuuu
    Very helpful

  • @1Soltis
    @1Soltis 6 років тому +5

    Thank you ! really nice tutorial that gave me ideas ! But I am wondering how to do that with 3D objects. Do you know how? :)

    • @Blackthornprod
      @Blackthornprod  6 років тому +2

      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 :) !

    • @1Soltis
      @1Soltis 6 років тому +2

      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

  • @TeurteuleSenior
    @TeurteuleSenior 4 роки тому

    Nice !!

  • @happymoments5016
    @happymoments5016 6 років тому

    Thanks you very much!

  • @siddharthtrivedi3322
    @siddharthtrivedi3322 5 років тому

    amazing explanation... I really like your videos :)

  • @trifan6889
    @trifan6889 4 роки тому

    amazing

  • @吳孟樺-q3s
    @吳孟樺-q3s 5 років тому

    Great Tutorial!!

  • @TyrranoLex
    @TyrranoLex 5 років тому

    Well done Mate!

  • @gamearxgames2754
    @gamearxgames2754 5 років тому

    That is a cool game you have, graphics are really nice, did you do them yourself or you have an artist?

  • @recon_p
    @recon_p 4 роки тому

    Thanks, this was very helpful. Interesting game.

  • @matsang2008
    @matsang2008 2 роки тому

    Soo coool

  • @hassonhamo4118
    @hassonhamo4118 6 років тому

    that's Awesome !

  • @awesome_blockman4603
    @awesome_blockman4603 3 роки тому

    thx so much

  • @johndough7479
    @johndough7479 6 років тому

    Well done child! I like your depth at that age and how you project it. ;)

    • @trentonpaul6376
      @trentonpaul6376 5 років тому +1

      That's kinda weird
      Edit: That's really weird

    • @hacah
      @hacah 5 років тому +1

      @@trentonpaul6376 that's absolutely weird

    • @nyctoverse5036
      @nyctoverse5036 5 років тому

      that's questionably weird

  • @robsonsiqueira9776
    @robsonsiqueira9776 2 роки тому

    thanks!

  • @NuNaKri
    @NuNaKri 4 роки тому

    Cool 😃

  • @arjunsharma8250
    @arjunsharma8250 2 роки тому +1

    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

  • @AmallieGames
    @AmallieGames 5 років тому

    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?

  • @Marcusvcbr
    @Marcusvcbr 4 роки тому +2

    i whant to do this, but with canvas image.

    • @erabanray7143
      @erabanray7143 4 роки тому

      You could use the normal mask component for UI mask.

  • @walteralmeida7064
    @walteralmeida7064 5 років тому

    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.

  • @soma_donat
    @soma_donat 2 роки тому

    Thanks very good tutorial. But how can I do this with UI images? I really need to know

  • @_Garm_
    @_Garm_ 6 років тому +1

    what a refreshing idea :D

  • @felipeinoue4917
    @felipeinoue4917 5 років тому

    nice, very nice

  • @mihaelaafloroaie8515
    @mihaelaafloroaie8515 5 років тому +4

    hey, i dont know how to make the sprite mask follow my cursor.. How do i make it??

    • @omnikar5
      @omnikar5 5 років тому +4

      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.

    • @atomicalex1732
      @atomicalex1732 4 роки тому

      @@omnikar5 THANK YOU!!!!!!!!!!!!!

  • @gutsberserker5476
    @gutsberserker5476 Рік тому +2

    you were yelling at me the whole time :(

  • @anshulsingh8326
    @anshulsingh8326 3 роки тому +1

    How to make is smooth instead of hard mask?

  • @TomtheMagician21
    @TomtheMagician21 2 роки тому

    Wow thanks! Is there any way to edit the collider according to the sprite mask?

  • @pixeljourney6880
    @pixeljourney6880 2 роки тому

    thank u

  • @beckyboy1
    @beckyboy1 2 роки тому

    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

  • @kent_s
    @kent_s 6 років тому +2

    can this be used for Image?

  • @teokar7803
    @teokar7803 5 років тому +1

    How do we move the mask? BTW Great Tutorial.

    • @omnikar5
      @omnikar5 5 років тому +1

      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.

    • @reszzz
      @reszzz 5 років тому

      Yeah seriously that's kind of an important element.

    • @teokar7803
      @teokar7803 5 років тому

      Thanks

  • @grzyb2294
    @grzyb2294 5 років тому

    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.

  • @exestars9835
    @exestars9835 5 років тому

    how did you activate it? like save it or export it

  • @chuzzleado7772
    @chuzzleado7772 3 роки тому

    mask for me is horrible is not using a mask and then it enables it automaticly and hides the other sprites :/

  • @beanpro
    @beanpro 6 років тому

    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?

  • @dailydoseofchocolate9411
    @dailydoseofchocolate9411 5 років тому

    hi.. can you please tell me how did u manage the jaggy edges that mask leaves on the sprite ? thanks for your tutorials

  • @itsnikkibell
    @itsnikkibell 3 роки тому

    Easy enough video but how do you make the sprite mask follow the mouse cursor?

  • @pittherichkid
    @pittherichkid 4 роки тому

    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.

    • @pittherichkid
      @pittherichkid 4 роки тому

      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.

  • @CraftyMaelyss
    @CraftyMaelyss 4 роки тому

    Hi, I've watched this video several times over, step by step but the Sprite Mask absolutely will not work.

  • @nightwalkerj
    @nightwalkerj 4 роки тому +1

    There is no "mask interactions" in my inspector when highlighting a sprite.

  • @TheJunkieBox
    @TheJunkieBox 3 роки тому

    How do you do this if want to hide a MeshRenderer?

  • @nightfury8631
    @nightfury8631 4 роки тому

    4:12
    @BlackthornProd (sry I tagged u)
    how did you made the sprite mask to follow the mouse cursor?
    plz help

  • @nyctoverse5036
    @nyctoverse5036 5 років тому

    what if there's more than one sprite mask? How do you make objects only be affected by certain sprite masks?

  • @darrylblake9680
    @darrylblake9680 2 роки тому

    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)