Place it just behind your wall so that it blocks the light from leaking out.
Unity directional light bleeding trhough wall.
The best place to ask and answer questions about development with unity.
This is caused because the use inverse squared falloff is set to on by default forcing you to have to use way more lights than whats needed or to set it s value far outs side acceptable values.
If you are a moderator see our moderator guidelines page.
Make sure to check out our knowledge base for commonly asked unity questions.
Welcome to unity answers.
Shadows are the obvious answer however i assume you are using lite and that s not an option.
I believe this has something to do with culling masks or light culling.
You can simulate this in shaders or use raycasts to see if the light is behind a wall.
These options have obvious edge cases that can t be easily resolved.
I was wondering how i could go about culling the lights so they no longer shine through walls.
If a light is next to a wall on one side you can see it on the floor on the other side.
That s why shadows exist.
Any help is greatly appreciated.
A potential solution is to open the gameobject s mesh renderer a mesh component that takes the geometry from the mesh filter and renders it at the position defined by the object s transform component.
As an off the wall guess though it looks like your trying to force beta your lighting values far beyond their limitations that is causing the lighting solution to bleed.
Create a unity primitive cube plane etc sized similarly to your wall remove its collider and in the mesh renderer properties set it to shadows only.
In that case you ll need to be a bit more clever.