- Home /
solved with the last version
Capsule collider IsTrigger problem from Unity 5.6 to Unity 2017.2
Hello, I have a problem on capsule collider in my game on the last version of Unity 2017.2. The collider trigger event works properly but if I disable and enable the parent game object the collider trigger stop working, in the Unity 5.6 version doesn't happen, I don't know why, can you help me ? thank you very much, best regards...
![alt text][1]
before disable and enable the parent object the trigger fire
![alt text][2]
after disable and enable the parent object (the player) the trigger stop working
Answer by IElectric · Oct 17, 2017 at 07:09 PM
On Unity 2017.1.2f1 the trigger also works correctly.
Seems a bug on the last version of Unity 2017.2.0f3 because, after switch off/on the enable property of the parent object, the enabled trigger of the enabled collider don't fire OnTrigger event in the attached script. If during the action of the player I switch off and then on the IsTrigger property of the collider in the unity editor the collider come back to work, best regards...
Answer by MKaramDev · Oct 17, 2017 at 07:25 PM
I have the same problem as well..... i have to disable then enable the gameObject for the trigger to work... also i found that if i touch anything on the rigidBody attached to the gameObject e.g. enable Gravity and Disable it again. the trigger will also start working...
Answer by StartStart · Oct 22, 2017 at 02:54 PM
Same here " Unity 2017.2.0f3 (64-bit) "
Need to disable and enable isTrigger if collider has enabled to make it work correctly.
Problem Collider.isTrigger = true && Collider has disabled ( Before start game ) > Start game > Event that made Collider enable > Bug
How to manual fix Collider.isTrigger = true && Collider has disabled ( Before start game ) > Start game > Event that made Collider enable > re-tick isTrigger to off and tick it on again > work fine.
Follow this Question
Related Questions
OnTrigger ignoring all collisions but the first 1 Answer
OnMouseDrag issue, Event System 0 Answers
On Collide script not working! 1 Answer
Can't click gameobject when over another trigger? 1 Answer
Which setup should I use for spawning? 0 Answers