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) .
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.
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.
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
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
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.
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!
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 :)
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.
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
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?
[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
if y'all were confused about why you couldn't change it from forward {R} to custom {R}, its cuz its changed, you just need to make the 2D experimental {R}, then put that in where the pipeline asset is supposed to go.
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 😂
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.ruclips.net/video/4pl8DcsCQ_k/видео.html Though I’m sure using lights will work just as well
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.
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!
Wow, RUclips 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 😄
If your sprites are not black or dark after following the steps, I might found a solution: First of all, make sure you have sprites lit default attached to your scene sprites, you can do it manually or do as it's shown at 4:39 After that, select your camera, and under Rendering -> Renderer select the 2D renderer object that you created And finally, make sure to have the little lightbulb at the top left (Next to 2D view) active, and in that way you will always see scene lighting active. Good luck, have fun!
If anyone is wondering why this wont work on a tile map; simply delete the tilemap and create a new one if you had a tilemap before implementing the lighting assets then you have to make a new one
@@Mondgewitter couldn't find the material when i tried to change it so i went to the Tilemap Renderer clicked right and selected Reset and it automatically changed the material to Sprite-Lite-Default
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.
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
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.
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
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!
I upgraded my project to the Universal Render Pipeline but my sprites where not turning black in the game. It turns out that you need to have at least one 2D light!
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?
The "wohoo!" at 04:58 is just so adorable! Please come back to make more amazing videos, I found your channel just a few days ago and you're by far the best content creator I've ever seen!
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
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!
I liked this video, appreciate it much, but I really want to know how they create the light and shadow for pixel art with "pixelated" shadow as in the "Pathway" game. Please make a video about it....
Hi Everyone! Just sharing the signup-link for the boot camp! academy.zenva.com/brackeys
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) .
This is perfect! Been looking for more VR courses online, especially after Udacity removed their VR nanodegree programs. Thank you!
@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.
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.
Only global lights are working on my project, help!! :(
It is called universal render pipeline now, just in case anybody is wondering
Thanks! I was a bit confused looking through videos
Thank you! I was also just searching for it too lmao
Thanks
thanks, this really helped me
Thanks man.
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.
thx man exactly my problem
You actually don't need the LWRP if you already have URP to do everything in this tutorial
Thank you lovely fellow, I hope you get laid a lot.
Thanks a lot
Thanks, bro! It confuses me a lot
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
oh my god thank you for that global light comment
or set it to 1 if you want everything to be light :-)
You saved me !
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
THANK YOU, RANDOM CITIZEN! :D
Hey Brackeys, great video! Would love to see more 2D stuff like this
Why bold
@@miksuko what???
Me too 😢
huh
If anyone is confused, it is now called Universal RP
Thanks!
this should be a top comment!
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.
thankyou sm ily
tysm!!!!
Frickin Brackeys man. I think he's the happiest person I've ever seen
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!
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!
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!
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
:)
I've been having recent issues with 2d lighting, thanks for this :)
the best tutorials that ever existed
I literally was looking for this last night.
Stop reading my mind brackeys!!
Brackeys is so awesome
*drags in massive light* "so lights on, its showtime"
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.
the intros just makes my day
Glad you added the note about shadows cause all the way through I was thinking about them.
YOU HAVE DONE INCREDIBLE JOB IN TEACHING GAME DEVELOPMENT.
ENJOY YOUR BREAK.
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
This is perfect and great timing too! Just as I start creating my first 2D game :D
Great video as always Brackeys, thanks!
I'm in the same postion
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?
[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
@@lolesch thanks
Creating a new material and adjusting the shade to add to your tile map renderer doesn't work for me.
@@lolesch you are a fricking legend
😘
Goshdangit. Brackeys was just too good for RUclips.
i know english very bad, but your courses is very understandable, and i understand what you say. Thanks you for this
Took me a long time to find out, but if you are also on Unity 2020.1, install Universal RP from the Unity Registry part of the Package Manager.
Thanks man, I've been searching Lighting RP for 2 hours
Thank You PAPA
god bless you sir
Tysm!!!
a f*cking life saver thx
if y'all were confused about why you couldn't change it from forward {R} to custom {R}, its cuz its changed, you just need to make the 2D experimental {R}, then put that in where the pipeline asset is supposed to go.
what do you mean by "make the 2D experimental" ?
Thats just how it’s labeled, it says (I think) “2D (experimental)
@@elijahlittrell7241 Thanks but I still get the problem that when I drag a sprite it isnt completely black like Brackeyz did
Thanks to this video. I can finally create my 2D flashlight...🤩
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 😂
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.ruclips.net/video/4pl8DcsCQ_k/видео.html Though I’m sure using lights will work just as well
@@albingrahn5576 sprite mask dont support transparency
Just have a large ui element covering the screen except for the beam. But this works too.
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.
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!
just what I needed
love Brackeys
Congratulations for your appearance in Black Mirror!
thank you! your tutorials are always easy to follow and straight to the point ^^
Wow, RUclips 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 😄
Thank You Brackeys! That was JUST the video i needed :)
Great!
Godot 3 has 2D lighting a few years ago. Now Unity have it too!
If your sprites are not black or dark after following the steps, I might found a solution:
First of all, make sure you have sprites lit default attached to your scene sprites, you can do it manually or do as it's shown at 4:39
After that, select your camera, and under Rendering -> Renderer select the 2D renderer object that you created
And finally, make sure to have the little lightbulb at the top left (Next to 2D view) active, and in that way you will always see scene lighting active.
Good luck, have fun!
you re a legend
I've been waiting for this for so long! :D thx!
Tomorrow I am going to start a game jam where I have to make a 2D horror game and this beautiful video shows up
Thank you, dood
@Crazy Cam Thanks :)
Beta versions are not advisable for production right 🤔
Can you make a tutorial on fire movement? (Waving, crackles, etc.)
Probably involves a script updating the settings on the light object.
Like fluctuating the intensity and color.
@@MrSirFluffy Probably better to make an animation that changes light values.
@@Tokw11 Do settings change in animation? If so that would work too.
@@MrSirFluffy I believe so. Just hit that record button and see what goes red
@@MrSirFluffy yes
OMG finally we get 2d Lightning. Looks really awesome in your video, I gonna try it out right away
It looks so great! Now we're waiting for shadows.
I don't even game dev but I find all of this stuff interesting and watch anyways lol
I love the way you say "renderer"
Can't wait for the shadows
I love you man! You breathtaking! And this - just what i need!!!
If anyone is wondering why this wont work on a tile map; simply delete the tilemap and create a new one if you had a tilemap before implementing the lighting assets then you have to make a new one
Thanks man
You can also just change the material on your tilemap to Sprite-Lit-Default.
@@Mondgewitter Oh really? I tried this before but it didn't do anything. maybe I did something wrong.
@@Mondgewitter couldn't find the material when i tried to change it so i went to the Tilemap Renderer clicked right and selected Reset and it automatically changed the material to Sprite-Lite-Default
@@Mondgewitter That's what I did, works like a charm: Lightweight RP/Runtime/Materials
You're a life saver @brackeys!
Awesome. Unity does doing good work. It is just a matter of skills to make it run smoothly.
This lights make 2D games cool
Please make an Local Multiplayer Tutorial in 2D
online 2D would be cool too xD
yeah it would be very nice!
In Unity/learn i believe i saw something like that these days. It´s worth to search fof
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.
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
Really cool!
XD
Thank you for detailed explanation! Waiting for shadows feature!
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.
As always - just the best
omg you have no idea how much i needed this tutorial (sry for bad english)
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
lol
I had trouble with 2D lights thanks for helping!
Really thanks so much, Brackeys.
Really really really really really really awesome!
Finally, that is the feature I always wanted
Thanks, been so excited to see this since it was announced :D
To make sure 2d lightning works, delete completely settings folder which has default renderer
This feature is lit!
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!
I just love this channel, it always appear with explanations that can help me increase the quality of my projects
Wee .. that is my knight sprite used at the 13:00 mark .. from my RayWenderlich tutorial on Procedural Dungeons .. Really cool :D
I wish unity's 2D renderer existed last year when I worked on my first game
ohmygod he uploaded another 2d tutorial thank you mr. Brackeys, CEO of Brackeys
I LOVE you videos they really have helped me to learn and love unity. You inspire me everyday
thank you again !
I like how you say rendered, Renderah
I upgraded my project to the Universal Render Pipeline but my sprites where not turning black in the game.
It turns out that you need to have at least one 2D light!
You're making me happy, thanks.
Sweeeet! 2D shadows would also be an interesting topic!
Great video!
*I love you Brakeys*
Brackeys elsker dine videoer
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?
YE thanks for tuning as BRACKEY YOUR OLD MEMORIES... BTW AWESOME VIDEO 😀😀😀🤣🤣🤣☺️😄😄
Lights up my day
The "wohoo!" at 04:58 is just so adorable! Please come back to make more amazing videos, I found your channel just a few days ago and you're by far the best content creator I've ever seen!
Is the T-shirt you're wearing designed by "BlackThornProd"? Because the graphic resembles his Art style!!
Great video really very helpful...... U should do a series on 2d game that contains all the required techniques and all the other stuffs.... Thanks.
Sweet - that'll come in handy for a project I'm working on for xmas!
Thanks, very good tutorial
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
Convert to grayscale and blur. This will work unless you are trying something more complex or precise
30 seconds in i gotta subscribe bc wholesome teacher
Just mentioned that you can put some shadow to object using component "Shadow Caster 2D"
Great job man! Thank you for making this video :-)
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!
I don’t even need to know this but I watch it anyways
it do be like that sometimes
makes ya smarter
That's pretty amazing ! :o
Thank you !
Even if now unity uses URP, the video still helps, thank you :)
Saved me loads of time of creating light maps etc. Thanks! I also had to update to a beta, but...okay.
I liked this video, appreciate it much, but I really want to know how they create the light and shadow for pixel art with "pixelated" shadow as in the "Pathway" game.
Please make a video about it....
Are you guys ever going to make a full game. I would like to see what you guys are capable off.