In a previous post I asked about a weird problem with my BoxCastAll that stopped detecting colliders. After some tests, I found that the problem occurs exactly one minute (not 40 seconds, or 55 seconds) after the first detection. I know the code works, because in a old project it works perfectly. I have made several tests, trying to isolate the problem: I used the old models, re-created the project with Unity 2018.4 (the old project that works was created with 2018.3, I think), but nothing works, the problem persists.
Any idea about whats happening here?
It’s not a default Unity problem, so maybe you have some other script that is time dependent?
No. The only time dependent part is working correctly. As I said, the same code works perfect in an old porject, but as soon as I put it in a new project, it produces the same problem: one minute after first detection the casts no longer detect any object. I tried adding a layer, but that didnt solve the problem.