- Home /
BoxColliders go off when object SetActive
Good day,
Anyone understands why some of my 2d objects' BoxColliders go off the moment in my script I set the object active? It is not making much sens to me at the moment.
Sounds like a strange one, Do you have a 2d box collider attached? $$anonymous$$ight not make a difference but its just a guess
also just to be clear, does the collider Turn off or does it get destroyed?
What do you mean by "go off?" Are they falling through objects suddenly? Does the Inspector show them as missing, or disabled?
What's the line, just someBoxObject.SetActive(true);
?
hi guys, so I check in the inspector whilst it is playing and you can litterally see the box collider no ticked anymore. So in the script i set the object to not be active on Start, then after a while, in the Update function, it goes active. But now when they go active (about 10 objects) on about 8 have their box collider still ticked and the other two just went off. they are visible but the collider just not ticked which means i cant even interact with them. The inspector shows them disabled
Your answer
Follow this Question
Related Questions
Game Object is not working properly 0 Answers
Hey! how to connect two objects? So to make one? 3 Answers
how to get objects that are in some radius with the point in certain center 1 Answer
Selecting and unselecting objects with raycast 0 Answers
Memory Leak Adventures in Editor (3.4, lot of instantiated objects) 1 Answer