Question by
Cowboy_Jow · Jan 01, 2018 at 04:06 AM ·
triggerslayermask
Is there a way to prevent OnTriggerEnter from running with a layer mask?
Hi I would like the void OnTriggerEnter to run only when a collider of a certain layer enters. I know you can run a check within the function. I am just looking to optimize this with layer masking.
Thanks for any help.
Comment