I have this problem where Unity is creating colliders and attaching them to game objects with names that are negative numbers like “-1532” and there is no way to permanently remove them. I have no idea why it does this, but these colliders appear after entering and leaving play mode a few times. These game objects do not appear in the hierarchy anywhere.
The only way to get rid of these phantom colliders is to restart the Unity editor. Then they are gone for a short bit before quickly returning. When making a build, these colliders are never present. They will appear in every scene of my project, usually in spots where an object with a collider was at some point in time.
I have tried clearing Library. I have tried checking the editor options “Reload Scene” and “Reload Domain” when entering play mode and these do not help. What else can I try? This is wasting a lot of time for me.
This is how I’m showing the name:
Debug.Log("Colliding with: " + raycast_info.collider.gameObject.name);
2022.3.20 built in RP