Then click on your light click on the culling mask dropdown then uncheck the layer the object is on.
Light goes through walls unity.
Light passing through walls 1.
This right here is my animation library for light weight type safe animations.
Set the point light s baking property to mixed or baked then bake your lighting data using the lighting tab.
That s why shadows exist.
Since you re using unity free put the plane on a specific layer.
But sometimes the coin passes through the walls but when i increase the speed from 30 to 50 points it passes through the walls on the first click.
Part of building an architectural walkthrough using unity video series.
As a unity developer for over 8 years i ve recently started open sourcing some of my modules i ve made and been using to give back to the indie community.
In that case you ll need to be a bit more clever.
Although you have enclosed the light indirect light from the light source seems to seep through especially on the ceiling and the floor.
If either of these don t solve.
I ve googled a lot and still got nothing except for the dontgothroughthings script which doesn t work for me or i don t really know how to use it.
You have a point light source behind some walls.
These options have obvious edge cases that can t be easily resolved.
Use unity to build high quality 3d and 2d games deploy them across mobile desktop vr ar consoles or the web and connect with loyal and enthusiastic players and customers.
Create a unity primitive cube plane etc sized similarly to your wall remove its collider and in the mesh.
You can simulate this in shaders or use raycasts to see if the light is behind a wall.
Shadows are the obvious answer however i assume you are using lite and that s not an option.
Feel free to look around on my github for i ll be sharing more.
Light going through wall unity answers unity is the ultimate game development platform.