I was wondering, if there is a way to change the collision mask of a trigger, so that it still behaves like a trigger, but only for specific collision groups. For rigidbodies it is easy enough to change it, like the follwing example. But is it possible to set properties like these for triggers as well?
Nope, unfortunately not. The filtering masks are hardcoded in the trigger and the body object is hidden, so you can’t change it. If your trigger needs to have a different mask you have 2 options:
Another option is to override collision component system, so that it references your own Trigger class. This is a bit more cumbersome, but works well too.
Please, create a feature request to allow changing filtering masks on triggers: