2D Lights and Shadows in Unity 2019! (Tutorial)

2D Lights and Shadows in Unity 2019! (Tutorial)

Unity

4 года назад

333,118 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sykoo
Sykoo - 28.12.2019 21:49

Super pumped for this video! Hope you all enjoy watching and find it helpful. =)

Ответить
Game
Game - 09.09.2023 15:26

ماچ به کلت

Ответить
Young Siju Presents Next-Gen Games
Young Siju Presents Next-Gen Games - 20.05.2023 21:32

Hey your video is amazing...I was wondering if you can help me out...I am try to use shader graph 2D but when i add my texture which had come with my water sprite from photoshop...the texture is not covering the full screen which is making the shaders to come out wrong...is there a way of resizing the texture...

Ответить
Hiedalle
Hiedalle - 10.05.2023 15:46

the 2d lights work quite well, but its very difficult to exclude objects from being lit. especially if they are placed on a canvas. is there a way to exclude assets from being lit? sortinggroup/sorting layers do not work here

Ответить
MRJakey Bro Animations
MRJakey Bro Animations - 24.04.2023 21:29

its not working for tilemaps

Ответить
James Dahlbender
James Dahlbender - 21.03.2023 22:24

Cool!

Ответить
Yawen Zhang
Yawen Zhang - 09.02.2023 00:54

Thanks so much, this solves my problem perfectly!

Ответить
Ivan Arantes
Ivan Arantes - 21.10.2022 23:28

What is the technique used for those trees animation?

Ответить
fantasma x
fantasma x - 12.09.2022 06:30

please give us your instagram id for further references,doubts and for clarification..

Ответить
RailbladerX
RailbladerX - 28.08.2022 21:38

Does this work without needing unity pro? our team can seem to get this to work.

Ответить
adhhnory / アドさん
adhhnory / アドさん - 01.08.2022 21:16

huge thanks for the crystal clear explanation

Ответить
Eduardo Gomez Coronado
Eduardo Gomez Coronado - 31.07.2022 14:00

tNice tutorialngs going as tracks can be anytNice tutorialng and everytNice tutorialng and anywhere. I would like to ask you a question please? The reason that I

Ответить
MrVastayan
MrVastayan - 08.07.2022 15:16

Tyvm

Ответить
Felina Faerlaingal
Felina Faerlaingal - 24.05.2022 18:25

Question: can you animate the 2dlight in sprite mode?
Like the light through branches, to add some "wind"? The light shapes move around in those cases, which we could mimic with an animation of the sprite, no?

Ответить
xArduinx
xArduinx - 17.05.2022 01:02

Anybody know why my textures are indefinitely white? Sprite lit and sprite unlit. Regardless of what texture I apply to lit or what color I apply to unlit. The objects are just always white.

Ответить
xArduinx
xArduinx - 14.05.2022 23:19

For some reason my scene is always as bright as possible, unaffected by light at all.

Ответить
Andres Piñeiro
Andres Piñeiro - 19.03.2022 19:15

I did all the steps and nothing really changed. I cant understand why.

Ответить
Rommel89
Rommel89 - 09.03.2022 22:40

oraleee me gusto como explicaste paso a paso sin saltarte nada. Excelente tutorial me gusto mucho. sigue haciendo asi cortos y bien explicados paso a paso sin saltar nada

Ответить
Patel Vraj
Patel Vraj - 26.01.2022 08:18

first of all move objects to prefab section then apply 2d light

Ответить
Vincenzo Viele Pardo
Vincenzo Viele Pardo - 24.01.2022 09:42

when trying to select the shader for a new matrerial i created, the shader "Universal Pipeline Render/Lit" is missing, and i got this error when installed the asset:
Couldn't open include file 'Packages/com.unity.render-pipelines.universal/Shaders/LitInput.hlsl'.. Please HELP!!

Ответить
SWann_P not?found
SWann_P not?found - 07.12.2021 11:31

Terrific..

Ответить
JesusOfCarrots
JesusOfCarrots - 01.12.2021 17:38

Wow I didnt know how easy but usefull lights in unity are!

Ответить
Alerica
Alerica - 27.10.2021 10:37

Nice video. Everything worked for me. but when i assign the 2D Render material to the URPasset file, my skybox disappears. Do you guys know why that happens or what could i be doing wrong?

Ответить
Dávila 95
Dávila 95 - 30.09.2021 14:49

BloodStreak material was not upgraded. There's no upgrader to convert Legacy Shaders/Particles/Alpha Blended shader to selected pipeline
UnityEditor.Rendering.Universal.UniversalRenderPipelineMaterialUpgrader:UpgradeProjectMaterials () (at ??

Ответить
KING JAY VPN
KING JAY VPN - 14.09.2021 05:44

sykoo is working for Unity or what??

Ответить
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠxui
ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠxui - 27.08.2021 03:15

thanks

Ответить
No Edits
No Edits - 20.08.2021 15:25

Rabbit.

Ответить
islamiros
islamiros - 19.08.2021 02:21

I have a problem ,I did that but my particle system just appear as pink boxes ,what should I do?

Ответить
Bubu Frutzke
Bubu Frutzke - 01.08.2021 11:38

Very useful video! Brilliant & clear tutoring.

Ответить
&I
&I - 30.07.2021 22:22

Now there are light seams showing on some of my tiles that weren't there before.
Any ideas?

Ответить
Sergey Yakovlev
Sergey Yakovlev - 30.06.2021 16:49

How costly is it for mobile power consumption?

Ответить
Vokar Dar Angerl
Vokar Dar Angerl - 29.06.2021 07:37

But why it doesn't work in URP Project ?

Ответить
ForceVII
ForceVII - 14.06.2021 18:08

How did you turn scene black?

Ответить
Jabajaba Ja
Jabajaba Ja - 08.06.2021 19:20

How do you make sprite sunspots?

Ответить
網絡紅仁 RedInternet
網絡紅仁 RedInternet - 03.06.2021 06:04

where is the asset now

Ответить
Trending Troll
Trending Troll - 22.05.2021 21:02

In 2d,
Can we change sprite size 512 to 2048 (in coding )while that particular scene loading.

To reduce apk, while building all sprites should be 512 and when needed, particular sprite alone to change 2048, in coding for clarity purpose.

Ответить
EnragedTerrier
EnragedTerrier - 30.04.2021 04:06

is there a way to cast softer shadows? It would also be nice if I could change the length of the shadow. Right now they seem to go on forever.

Ответить
cường hoàng nguyễn
cường hoàng nguyễn - 26.04.2021 10:52

what laptop are you using? i'm going to buy mac mini M1 2020, does it work with Unity ?

Ответить
tirkdiamond
tirkdiamond - 10.04.2021 22:21

For some reason, my sprites are unaffected by lights in the screen. 3D objects work fine, but I can't make lighting(2D or regular) work with the sprites. Any ideas on how to fix it? I have my scene lighting on.

Ответить
Crab Juice
Crab Juice - 10.04.2021 08:33

God Bless you bro. Cheers

Ответить
Jaden is not okay
Jaden is not okay - 04.04.2021 01:50

Help, when I upgrade the materials, they just become black and when I light them they don't reveal the texture it's just whiteness

edit: I fixed it i just had the light on the wrong blend mode

Ответить
Garruk The Wildspeaker
Garruk The Wildspeaker - 01.04.2021 11:20

How can I change shadow caster shape from a script?

Ответить
Orkhan Julfa
Orkhan Julfa - 25.03.2021 15:19

Hello! I am building 2D game using URP. After upgrading Unity from version 2020.3 to 2021.1 all 2D light start to glitching while I using Perspective Camera.
Is it bug of new Unity or I miss something in settings?

Ответить
J.U
J.U - 22.03.2021 02:56

Awesome, was able to get 2d lights to work.

Ответить
EvaUnit01
EvaUnit01 - 19.03.2021 04:18

Mostly curious how to implement that robust shadow caster system in a different project. Though, I think the fact that I have to even ask implies that I don't understand enough of its functionality to know all of the component parts I would have to "copy" over to my other projects. Much left to learn.

Ответить
cosmocat
cosmocat - 13.03.2021 18:51

Skybox turns black when i do that and when i jump it just prints out my character everywhere... 100% working... this tutorial is not working like everytime tutorials from Unity...

Ответить
Nicholas Kiss
Nicholas Kiss - 08.03.2021 23:40

This immediately improved my games graphics. Great stuff; thanks a lot!
I do have a question though: Is there any way to compress the individual lights for better performance?

Ответить
Phonix
Phonix - 28.02.2021 18:57

i am using a package to curve the world. and i have to apply that package material to my sprites.. so when i am using that material i can not use other packages material such as this one to use the lighting.. is there any solution ? i can not use multiple materials. it makes my sprite white!

Ответить