2D Lights in Unity!

  Рет қаралды 631,880

Brackeys

Brackeys

Күн бұрын

Let's learn how to make 2D lights using the new 2D Renderer in Unity!
● Check out Zenva Academy’s curriculums: academy.zenva.com?zva_src=sponsored-brackeys
● Sign up for the free boot camp: academy.zenva.com/brackeys
● Project Files: github.com/Brackeys/2D-Lights
● Unity Samples: bit.ly/31vdQ2w
● 2D Light Forum Post: bit.ly/2RdgPYu
····················································································
❤️ Donate: www.paypal.com/donate/?hosted...
► Join Discord: / discord
● Website: brackeys.com/
● Twitter: / brackeystweet
● Instagram: / brackeysteam
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
········································­­·······································­·­····
♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

Пікірлер: 866
@Brackeys
@Brackeys 5 жыл бұрын
Hi Everyone! Just sharing the signup-link for the boot camp! academy.zenva.com/brackeys
@ciscoandhenry2635
@ciscoandhenry2635 5 жыл бұрын
hey Brackeys sometime could you try out a 2D coding program called stencyl because i love stencyl but all the other video guides are terrible (by the way you can code with java on it it's not just block coding) .
@rikkurco
@rikkurco 5 жыл бұрын
This is perfect! Been looking for more VR courses online, especially after Udacity removed their VR nanodegree programs. Thank you!
@devision-studio
@devision-studio 5 жыл бұрын
@Brackeys Hello! Could you please make a video on how to get haptic in a mobile game? It would help me out so much if you could make a tutorial.
@michaelwieland3221
@michaelwieland3221 5 жыл бұрын
I got a problem with light rendering with Normalmap. I get the 3d lightning effect on my 2d sprite, only in my Scene view, but not in Game view or in the exported game. I'm using Unity 2019.3.0a6.
@luhanimations
@luhanimations 5 жыл бұрын
Only global lights are working on my project, help!! :(
@mnnm1989
@mnnm1989 3 жыл бұрын
It is called universal render pipeline now, just in case anybody is wondering
@abalorias333
@abalorias333 3 жыл бұрын
Thanks! I was a bit confused looking through videos
@totalnubs1148
@totalnubs1148 3 жыл бұрын
Thank you! I was also just searching for it too lmao
@alvin4100
@alvin4100 3 жыл бұрын
Thanks
@QiwiYuna
@QiwiYuna 3 жыл бұрын
thanks, this really helped me
@PixelbugStudio
@PixelbugStudio 3 жыл бұрын
Thanks man.
@Tall_Order
@Tall_Order 4 жыл бұрын
For anyone confused in 2020 LWRP uses URP as a dependency so when you create your Pipeline Asset and 2D Renderer, they're both in Create > Rendering > Universal Rendering Pipeline. Everything else should work as described. Edited on 5/20/20: I'm sure this will change at some point. If it has by the time you're reading this; disregard it.
@afromosh7495
@afromosh7495 4 жыл бұрын
thx man exactly my problem
@Keanine
@Keanine 4 жыл бұрын
You actually don't need the LWRP if you already have URP to do everything in this tutorial
@Rhino123freak
@Rhino123freak 4 жыл бұрын
Thank you lovely fellow, I hope you get laid a lot.
@oleslav07
@oleslav07 4 жыл бұрын
Thanks a lot
@peterl1202
@peterl1202 4 жыл бұрын
Thanks, bro! It confuses me a lot
@alexandermassaro8331
@alexandermassaro8331 Жыл бұрын
The Upgrade part is now under Window -> Rendering -> Render Pipline Converter You also need to add a 2D Global Light, set the intensity to 0. This makes everything Dark
@valeriekolb7918
@valeriekolb7918 11 ай бұрын
oh my god thank you for that global light comment
@b33bo93
@b33bo93 7 ай бұрын
or set it to 1 if you want everything to be light :-)
@tenebrusnoirceur6343
@tenebrusnoirceur6343 4 ай бұрын
You saved me !
@micaheberz6020
@micaheberz6020 3 жыл бұрын
If anyone is confused, it is now called Universal RP
@tubyuwu2320
@tubyuwu2320 3 жыл бұрын
Thanks!
@chrisfarlee6496
@chrisfarlee6496 3 жыл бұрын
this should be a top comment!
@metall7331
@metall7331 5 жыл бұрын
I was literally looking for a unity 2d light tutorial a few hours ago for the game I'm making. I found a solution using diffuse material and point lights, but to be honest I not too pleaded with the way it looks. You are a life saver man!
@flappyBoi
@flappyBoi Жыл бұрын
Updated as of (09/07/2022) : from the package manager, import the Universal render pipeline project, in assets do : * create>rendering>URP2D renderer * then Edit > Project Settings, and select the Graphics category. Set the Scriptable Render Pipeline Settings __to your created __Pipeline Asset __by dragging the Asset directly onto the box, or by selecting the circle icon to the right of the box to open the __Select Object window and selecting the Asset from the list.
@evenyourmotherlikesme
@evenyourmotherlikesme Жыл бұрын
thankyou sm ily
@lilyomp4598
@lilyomp4598 Жыл бұрын
tysm!!!!
@Nyck0s
@Nyck0s 5 жыл бұрын
Hey Brackeys, great video! Would love to see more 2D stuff like this
@miksuko
@miksuko 5 жыл бұрын
Why bold
@tabiasgeehuman
@tabiasgeehuman 5 жыл бұрын
@@miksuko what???
@connorross8942
@connorross8942 3 жыл бұрын
Me too 😢
@JJfriends
@JJfriends 3 жыл бұрын
huh
@danielweber4961
@danielweber4961 5 жыл бұрын
WOW, this new 2D lighting looks amazing. I can not wait to play around with this. Thanks always for bringing us top Unity news Brackeys!
@clamum
@clamum 5 жыл бұрын
Frickin Brackeys man. I think he's the happiest person I've ever seen
@NETRUNNER_03
@NETRUNNER_03 5 жыл бұрын
I literally was looking for this last night. Stop reading my mind brackeys!!
@taaamas7785
@taaamas7785 5 жыл бұрын
I've been having recent issues with 2d lighting, thanks for this :)
@mitulmahish6145
@mitulmahish6145 Жыл бұрын
For Everybody's Good, who are using New versions of unity Lightweight render pipeline is now URP && after assigning pipeline asset in Project Settings >>> Create a new "Renderer > Universal Render Pipeline > 2D Renderer" >>> Select your URP pipeline asset (the one first created) >>> Inspector > General > Render List > Add the 2d Renderer >>> Set it to Default
@_.emberrr
@_.emberrr Жыл бұрын
THANK YOU, RANDOM CITIZEN! :D
@CodeGaff
@CodeGaff 5 жыл бұрын
This is perfect and great timing too! Just as I start creating my first 2D game :D Great video as always Brackeys, thanks!
@tamsintweddell8226
@tamsintweddell8226 4 жыл бұрын
I'm in the same postion
@omerhijazi498
@omerhijazi498 4 жыл бұрын
he's so calming and understandable and if you ever stop at any particular second at parts where his face is shown you will get what you will get when typing "happy calm man" on Shutterstock/Getty :)
@zasharan2
@zasharan2 3 жыл бұрын
I looked it up, clicked on the video, and as the information loaded I thought "I bet it's gonna be Brackeys." I was not disappointed!
@druidofpies
@druidofpies 5 жыл бұрын
Alright, buddy. This is getting spooky how you're releasing videos on EXACTLY what I'm currently working on and am having questions about. Excellent video and helped me out a lot!
@trevsweb
@trevsweb 5 жыл бұрын
Glad you added the note about shadows cause all the way through I was thinking about them.
@GameDevNerd
@GameDevNerd 2 жыл бұрын
Kind of off topic but a handy trick in Visual Studio is to hit Shift + Alt + Enter whenever you need to focus on nothing but one script for a moment. It full-screens the editor box and eliminates all distractions. Hit the same keys to return to normal view. It helps me a lot.
@looserdev
@looserdev 5 жыл бұрын
Thank You Brackeys! That was JUST the video i needed :)
@visclo4782
@visclo4782 3 жыл бұрын
thank you! your tutorials are always easy to follow and straight to the point ^^
@gridgaming_
@gridgaming_ 4 жыл бұрын
Brackeys is so awesome *drags in massive light* "so lights on, its showtime"
@NathanSifuGaming
@NathanSifuGaming 5 жыл бұрын
Are... are you kidding me? A channel that’s... pretty much EXACTLY what I’m hoping for as somebody who’s planning on making a game for the first time? I’d sub twice if I could :D
@wayaway7234
@wayaway7234 5 жыл бұрын
I love you man! You breathtaking! And this - just what i need!!!
@michaelwieland3221
@michaelwieland3221 5 жыл бұрын
OMG finally we get 2d Lightning. Looks really awesome in your video, I gonna try it out right away
@spadexmagic8297
@spadexmagic8297 5 жыл бұрын
Amazing content Brackeys! I amend you for your free content and helpful tutorials. Your channel started my career as a game developer. Thanks again bro.
@icetrooper4875
@icetrooper4875 5 жыл бұрын
It looks so great! Now we're waiting for shadows.
@rejoentwm6398
@rejoentwm6398 5 жыл бұрын
I've been waiting for this for so long! :D thx!
@Nik-gv4mh
@Nik-gv4mh 4 жыл бұрын
Thank you for detailed explanation! Waiting for shadows feature!
@karficzfrizack2711
@karficzfrizack2711 5 жыл бұрын
Thanks, been so excited to see this since it was announced :D
@spartanh1438
@spartanh1438 4 жыл бұрын
just what I needed love Brackeys
@TimbavatiLion
@TimbavatiLion 5 жыл бұрын
Oh my god this is EXACTLY what i needed for my new 2D game idea that has units with flashlights, where everything outside the flashlight cone is invisible. I was wondering how to do that... and it just became so easy 😂
@albingrahn5576
@albingrahn5576 5 жыл бұрын
Selmokk If you want a little bit more control over the effect you could always use sprite masks, here’s a great tutorial by blackthornprod: m.kzfaq.info/get/bejne/ataca6eU2Km1j58.html Though I’m sure using lights will work just as well
@voidling2632
@voidling2632 5 жыл бұрын
@@albingrahn5576 sprite mask dont support transparency
@zachpetersen9250
@zachpetersen9250 3 жыл бұрын
Just have a large ui element covering the screen except for the beam. But this works too.
@brentooo
@brentooo 5 жыл бұрын
If using Unity Versions 2019.3.0a8 or .0a7 I believe, you will have Compile Errors when Installing the LWRP, so be aware. Hopefully save someone some hair tearing confusion. Went into the files and tried to fix it by overwriting some of the problems, but there was a few that I could not fix, so hopefully Unity Patches it up. Best options is to use Unity 2018.2 such as Brackey’s did in this video or use the traditional method with a 3D point light and materializing Sprites.
@mihirdesai2144
@mihirdesai2144 3 жыл бұрын
YOU HAVE DONE INCREDIBLE JOB IN TEACHING GAME DEVELOPMENT. ENJOY YOUR BREAK.
@JiwonSong95
@JiwonSong95 4 жыл бұрын
This is Sooo Amazing This works so well even if there are some changes Lightweight RP is now Universal Render Pipeline, and there is some hierarchy changes!
@4EGKingstone
@4EGKingstone 5 жыл бұрын
Finally, that is the feature I always wanted
@simonsemmler9804
@simonsemmler9804 3 жыл бұрын
the best tutorials that ever existed
@Kaldrin
@Kaldrin 5 жыл бұрын
That's pretty amazing ! :o Thank you !
@squidfrick2239
@squidfrick2239 5 жыл бұрын
I had trouble with 2D lights thanks for helping!
@tzisorey
@tzisorey 5 жыл бұрын
Sweet - that'll come in handy for a project I'm working on for xmas!
@igorthelight
@igorthelight 5 жыл бұрын
Great! Godot 3 has 2D lighting a few years ago. Now Unity have it too!
@SneezeyHey
@SneezeyHey 3 жыл бұрын
the intros just makes my day
@ladispl
@ladispl 5 жыл бұрын
omg you have no idea how much i needed this tutorial (sry for bad english)
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
Great video. However when it comes to using Tilemaps, the Tilemaps doesn't register the changes at all. When everything is supposed to turn black, it is only the non-Tilemap assets that are affected and turn black :/ My Tilemaps just remain unaffected as if I never used the 2D rendering shown in this video. Guess this means no more Tilemaps until there is 2D light support for it? Or am I missing something?
@lolesch
@lolesch 5 жыл бұрын
[SOLVED] you can create a new material and set the shader settings up yourself. there is a new entry for Lightweight Render Pipeline/2D/Sprite-Lit-Default. Drag that into your Tilemap Renderer and there you go
@factorial.
@factorial. 3 жыл бұрын
@@lolesch thanks
@xXSummonNightXx
@xXSummonNightXx 3 жыл бұрын
Creating a new material and adjusting the shade to add to your tile map renderer doesn't work for me.
@zaidmermam2524
@zaidmermam2524 3 жыл бұрын
@@lolesch you are a fricking legend
@lolesch
@lolesch 3 жыл бұрын
😘
@Dyzinel
@Dyzinel 5 жыл бұрын
You're making me happy, thanks.
@noponn8007
@noponn8007 5 жыл бұрын
ohmygod he uploaded another 2d tutorial thank you mr. Brackeys, CEO of Brackeys
@PScarin
@PScarin 5 жыл бұрын
I just love this channel, it always appear with explanations that can help me increase the quality of my projects
@madifoldstudio8064
@madifoldstudio8064 5 жыл бұрын
Saved me loads of time of creating light maps etc. Thanks! I also had to update to a beta, but...okay.
@aidanbirmingham7566
@aidanbirmingham7566 5 жыл бұрын
I LOVE you videos they really have helped me to learn and love unity. You inspire me everyday
@amateurinteractive1381
@amateurinteractive1381 5 жыл бұрын
You're a life saver @brackeys!
@n.karamousadakis
@n.karamousadakis 5 жыл бұрын
Great job man! Thank you for making this video :-)
@kingreinhold9905
@kingreinhold9905 5 жыл бұрын
Sweeeet! 2D shadows would also be an interesting topic!
@Targetnetnews
@Targetnetnews 2 жыл бұрын
Thanks to this video. I can finally create my 2D flashlight...🤩
@gmikhail94
@gmikhail94 5 жыл бұрын
Can't wait for the shadows
@akstis4183
@akstis4183 4 жыл бұрын
i know english very bad, but your courses is very understandable, and i understand what you say. Thanks you for this
@ErtBaran
@ErtBaran 4 жыл бұрын
Really thanks so much, Brackeys.
@dadlord689
@dadlord689 5 жыл бұрын
Awesome. Unity does doing good work. It is just a matter of skills to make it run smoothly.
@lisandromarinelli
@lisandromarinelli 5 жыл бұрын
Congratulations for your appearance in Black Mirror!
@stretch343
@stretch343 5 жыл бұрын
Lights up my day
@SebasCapo2013
@SebasCapo2013 5 жыл бұрын
I literally was looking this up in your channel a few minutes ago, oh my god hahaha
@GameDevNerd
@GameDevNerd 2 жыл бұрын
Wow, KZfaq was on autoplay and I'm working on a 2D micromanagement game about managing land in medieval time and was thinking "Hmmm, how to do day and night cycles in 2D ..." then I heard Brackeys say something about how to use lights in 2D 😄
@thugTaters
@thugTaters 5 жыл бұрын
I don't even game dev but I find all of this stuff interesting and watch anyways lol
@JarlThorson
@JarlThorson 5 жыл бұрын
Need to play with this and see if I can get a volumetric light effect going! Thanks!
@NuNaKri
@NuNaKri 4 жыл бұрын
Thanks, very good tutorial
@Moonz97
@Moonz97 5 жыл бұрын
This feature is lit!
@danielwilkins1147
@danielwilkins1147 3 жыл бұрын
Goshdangit. Brackeys was just too good for KZfaq.
@danzouph1695
@danzouph1695 5 жыл бұрын
Hi Brackeys! Thank you for all the tutorial you do for us. I started game developing because of you! 😄 This is my first time asking but, can you do a video about SMS or Messenger style in Unity?
@danielgrave5872
@danielgrave5872 5 жыл бұрын
This is awesome, I Love Unity.
@WillemWouter
@WillemWouter 4 жыл бұрын
Great Upload! Thanks dude.
@TheDeatrockerRoom
@TheDeatrockerRoom 3 жыл бұрын
As always - just the best
@surftijmen
@surftijmen 4 жыл бұрын
thank you again !
@saintsaladeunauthorizedspa6562
@saintsaladeunauthorizedspa6562 5 жыл бұрын
I love the way you say "renderer"
@alladin7339
@alladin7339 3 жыл бұрын
Great video, thanks!)
@AlwaysEast
@AlwaysEast 5 жыл бұрын
Really really really really really really awesome!
@Zihad
@Zihad 5 жыл бұрын
Wow, this is awesome.
@jeanjacquesstrydom
@jeanjacquesstrydom 5 жыл бұрын
I wish unity's 2D renderer existed last year when I worked on my first game
@tutanchacon
@tutanchacon 5 жыл бұрын
oh my god, i love this! thanks!
@peterhernandez5377
@peterhernandez5377 5 жыл бұрын
I hope he does a tutorial on shadows when they come!
@teambrunomir
@teambrunomir 4 жыл бұрын
Hey Brackeys! As allways I love your videos! By any chance do you plan on doing a tutorial about how to create that normal texture that you talked about? Or do you already have one regarding that subject? Thanks!
@ivaks1863
@ivaks1863 3 жыл бұрын
Great video!
@Real_MrDk
@Real_MrDk 5 жыл бұрын
YE thanks for tuning as BRACKEY YOUR OLD MEMORIES... BTW AWESOME VIDEO 😀😀😀🤣🤣🤣☺️😄😄
@MsRedNebulaPlays
@MsRedNebulaPlays 5 жыл бұрын
This is amazing!
@codingblocks3495
@codingblocks3495 4 жыл бұрын
love your videos!
@franzjacobhernandez186
@franzjacobhernandez186 4 жыл бұрын
OMG this video came just in time. Making a 2d survival horror game for GGJ2020 and I've been using 3d point lights. THIS is SO much better, and EASIER. HOLY CRAP TY
@Krblshna
@Krblshna 5 жыл бұрын
really cool, thanks
@RedstoneHair
@RedstoneHair 4 жыл бұрын
Love this guy 😘brackeys thx for the vids and for the humer and for everything
@GamesBySaul
@GamesBySaul 5 жыл бұрын
I literally tweeted yesterday about having to learn how to do lights in Unity for 2D projects and now this? Did Brackeys see my tweet? No chance in hell. Is it a coincidence? I think so. Hotel? Trivago. Seriously thanks for the vid! :D
@gameshub9458
@gameshub9458 3 жыл бұрын
lol
@oldshamen
@oldshamen 4 жыл бұрын
Wee .. that is my knight sprite used at the 13:00 mark .. from my RayWenderlich tutorial on Procedural Dungeons .. Really cool :D
@cindyespindola4946
@cindyespindola4946 5 жыл бұрын
That's really cool! Yay 2D!! :D
@dailyone986
@dailyone986 4 жыл бұрын
Thank you !
@canuniverse3367
@canuniverse3367 3 жыл бұрын
this is awesome ❤️
@yashwanthcb
@yashwanthcb 4 жыл бұрын
great work
@antoinepavy7712
@antoinepavy7712 5 жыл бұрын
T H A N K Y O U 😍 I needed this for my current project 😍
@Elias-cd5vg
@Elias-cd5vg 5 жыл бұрын
Please make an Local Multiplayer Tutorial in 2D
@Damian_h
@Damian_h 5 жыл бұрын
online 2D would be cool too xD
@Nik-gv4mh
@Nik-gv4mh 4 жыл бұрын
yeah it would be very nice!
@AnselmoSilvaBrito1hue
@AnselmoSilvaBrito1hue 4 жыл бұрын
In Unity/learn i believe i saw something like that these days. It´s worth to search fof
@holmbergen
@holmbergen 4 жыл бұрын
It's even easier creating local multiplayer using the new input system. Just slap a PlayerInputManager-script in your scene and reference your Player prefab (that must have a PlayerInput-script on it) and it should work.
@ceramango6483
@ceramango6483 4 жыл бұрын
30 seconds in i gotta subscribe bc wholesome teacher
@gusdeveloper
@gusdeveloper 5 жыл бұрын
Thank you very much, it is exactly what I was looking for! In the next video can you show how to create normal map textures? Your videos are awesome! Regards
@vegitoblue2187
@vegitoblue2187 5 жыл бұрын
Convert to grayscale and blur. This will work unless you are trying something more complex or precise
@2snakiroo337
@2snakiroo337 5 жыл бұрын
*I love you Brakeys*
@notsoren665
@notsoren665 5 жыл бұрын
The second 2D game shown in the beginning is MegaSphere. You should check it out! It's on Steam.
@zentergames1622
@zentergames1622 5 жыл бұрын
This lights make 2D games cool
@joelmanu9780
@joelmanu9780 5 жыл бұрын
Man I'm so pissed. Just spent the last 2 weeks figuring out how to use Unity lights in my 2d project only to find this video. I really need this for my project so I need to find away to update my unity version. Great video as always tho
TOP DOWN SHOOTING in Unity
19:52
Brackeys
Рет қаралды 854 М.
EVERYTHING you need to know to LIGHT your 2D Game
8:59
Sasquatch B Studios
Рет қаралды 8 М.
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 16 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 38 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 66 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 79 МЛН
Realistic 2D Lights & Shadows in Unity
11:28
Willy Dev
Рет қаралды 47 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,9 МЛН
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,2 МЛН
I Wish I Had Known This Before I Started Unity Game Development...
11:11
Brackeys Game Jam 2020.2 - BEST GAMES!
11:31
Brackeys
Рет қаралды 541 М.
I Made a 1D Game 🎮
11:18
Mashpoe
Рет қаралды 1,7 МЛН
Professional animator works on subscribers' Unity games for free.
22:20
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 16 МЛН