Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi! I found a small bug with Laser3D 1.0.0.4.

The raycast works perfectly when I start a layout, but after changing to another layout, Laser3D stops detecting objects completely.

I checked the addon and tested a small modification: resetting Laser3D_3dLayerCache when changing layouts.

That completely fixed the issue. The raycast now keeps working normally after switching layouts.

It looks like Laser3D_3dLayerCache keeps the 3D layer from the previous layout instead of refreshing it for the new one.

Just wanted to let you know in case you want to include the fix in the next version. 

Maybe in another layout lasser is on another layer? Or objects for detection have another different layer? Please check this and let me know

I checked that, but the layers don't seem to be the issue.

I tested the original 1.0.0.4 and the raycast stops working after changing layouts.

Then I tested the exact same project with only one modification to Laser3D: resetting Laser3D_3dLayerCache when changing layouts.

That immediately fixed the problem, and Laser3D now works correctly across all my layouts.

So it seems the cached 3D layer from the previous layout is the cause.

please download v1.0.0.5