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!
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.th-cam.com/video/4pl8DcsCQ_k/w-d-xo.html Though I’m sure using lights will work just as well
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
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.
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.
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 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.
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!
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.
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
Wow, TH-cam 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 😄
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
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!
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
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
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
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?
Slight update for 2019.3. Had a small headache getting this work, but what worked for me was creating the Pipeline Asset (Forward Renderer), then creating a 2D Render and replacing the default render it creates with the Pipeline Asset. (I deleted the default). Then I set that in Project Settings. Finally, it still wasn't working, even after upgrading the project and I had to delete everything in the scene and then drag everything back in. (Just make sure assets are using the Sprite-Lit-Default material)... but then it all worked nicely.
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
Frickin Brackeys man. I think he's the happiest person I've ever seen
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!!!!
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!
If anyone is confused, it is now called Universal RP
Thanks!
this should be a top comment!
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!
I literally was looking for this last night.
Stop reading my mind brackeys!!
I've been having recent issues with 2d lighting, thanks for this :)
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
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.th-cam.com/video/4pl8DcsCQ_k/w-d-xo.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.
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
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 waiting for this for so long! :D thx!
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.
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.
Brackeys is so awesome
*drags in massive light* "so lights on, its showtime"
the best tutorials that ever existed
thank you! your tutorials are always easy to follow and straight to the point ^^
Thank You Brackeys! That was JUST the video i needed :)
I love you man! You breathtaking! And this - just what i need!!!
Goshdangit. Brackeys was just too good for TH-cam.
YOU HAVE DONE INCREDIBLE JOB IN TEACHING GAME DEVELOPMENT.
ENJOY YOUR BREAK.
just what I needed
love Brackeys
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
Glad you added the note about shadows cause all the way through I was thinking about them.
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
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!
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.
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
i know english very bad, but your courses is very understandable, and i understand what you say. Thanks you for this
Wow, TH-cam 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 😄
the intros just makes my day
Thanks to this video. I can finally create my 2D flashlight...🤩
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
Thanks, been so excited to see this since it was announced :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
@@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
😘
You're a life saver @brackeys!
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.
Congratulations for your appearance in Black Mirror!
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
It looks so great! Now we're waiting for shadows.
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 🤔
Great!
Godot 3 has 2D lighting a few years ago. Now Unity have it too!
Awesome. Unity does doing good work. It is just a matter of skills to make it run smoothly.
I LOVE you videos they really have helped me to learn and love unity. You inspire me everyday
Really cool!
XD
omg you have no idea how much i needed this tutorial (sry for bad english)
I don't even game dev but I find all of this stuff interesting and watch anyways lol
As always - just the best
Thank you for detailed explanation! Waiting for shadows feature!
Really really really really really really awesome!
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 don’t even need to know this but I watch it anyways
it do be like that sometimes
makes ya smarter
I just love this channel, it always appear with explanations that can help me increase the quality of my projects
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!
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
Really thanks so much, Brackeys.
Great video!
This feature is lit!
I love the way you say "renderer"
Brackeys elsker dine videoer
I wish unity's 2D renderer existed last year when I worked on my first game
Great job man! Thank you for making this video :-)
I had trouble with 2D lights thanks for helping!
Brackeys is funny 😂😂😂
You're making me happy, thanks.
Sweeeet! 2D shadows would also be an interesting topic!
Can't wait for the shadows
Just mentioned that you can put some shadow to object using component "Shadow Caster 2D"
To make sure 2d lightning works, delete completely settings folder which has default renderer
30 seconds in i gotta subscribe bc wholesome teacher
ohmygod he uploaded another 2d tutorial thank you mr. Brackeys, CEO of Brackeys
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
That's pretty amazing ! :o
Thank you !
this is awesome ❤️
*I love you Brakeys*
Wee .. that is my knight sprite used at the 13:00 mark .. from my RayWenderlich tutorial on Procedural Dungeons .. Really cool :D
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
Finally, that is the feature I always wanted
love your videos!
That's really cool! Yay 2D!! :D
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?
This lights make 2D games cool
Sweet - that'll come in handy for a project I'm working on for xmas!
Lights up my day
You are always awesome .👍👍👍
YE thanks for tuning as BRACKEY YOUR OLD MEMORIES... BTW AWESOME VIDEO 😀😀😀🤣🤣🤣☺️😄😄
I like how you say rendered, Renderah
Saved me loads of time of creating light maps etc. Thanks! I also had to update to a beta, but...okay.
thank you again !
OMG I LOVE THIS, I SHOULDVE KNOWN THIS ALOT EARLIER AAAAAAAAAAAHHHHHHHHHHH TOO MANY PROJECTS WASTED
Slight update for 2019.3. Had a small headache getting this work, but what worked for me was creating the Pipeline Asset (Forward Renderer), then creating a 2D Render and replacing the default render it creates with the Pipeline Asset. (I deleted the default). Then I set that in Project Settings. Finally, it still wasn't working, even after upgrading the project and I had to delete everything in the scene and then drag everything back in. (Just make sure assets are using the Sprite-Lit-Default material)... but then it all worked nicely.
Thank you, L. Lawliet