I
I
I_am_Human2021-09-17 16:52:02
Unity
I_am_Human, 2021-09-17 16:52:02

Is there a rectangular light in unity 2D?

Good afternoon, I recently started studying 2D light in Unity and I had a question: is there a rectangular light (namely, a rectangular area that glows)? Please explain in more detail where it is located, what is there to "poke".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yura Milevsky, 2021-11-06
@Hackerman1

What... Well, surround the light source on four sides with something to make the "Shape" of the light. And remove the collision with these objects, as well as their rendering on the camera. To remove rendering on the camera: Create a layer (Layer) in the inspector, name it as you like, go to the camera settings, and turn off your created layer in the item with rendered layers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question