0
Fixed

Disabling triggers

Einar 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 4

It looks like disabling a trigger component has no effect. My guess is that this is some sort of framework/unity limitation. Disabling the entire gameobject works, and I can of course use a Condition to see if a trigger should have any effect. But is there a simple way to just turn the trigger off without affecting the rest of the gameobject it is attached to? And still be able to turn the trigger on again later?

Or maybe disabling a trigger should work, and I've done something weird?

Unity version:
Game Creator version:

Answer

+1
Answer
Fixed

I've managed to find a very simple work around this. On the next update, Triggers that have the component disabled won't be executed. Cheers!

GOOD, I'M SATISFIED
Satisfaction mark by Einar 5 months ago
+1
Searching answer

It does work like this, but I understand that from the Unity's how-things-usually-work, it should work like this. I'm currently working on a core update and I have an idea to make Triggers work following this behavior. I'll circle back once I have some news on this

it is not perfect solution, but you can use "condition" and add one "bool variables" to enable and disable your triggers :)

Fixing

That's a valid solution. However, I agree that a Trigger that is disabled (either the component or the entire game object) shouldn't react to events.

+1
Answer
Fixed

I've managed to find a very simple work around this. On the next update, Triggers that have the component disabled won't be executed. Cheers!