I’m going to have overlapping enemies in this 2D game, and as such would like to prioritize both z index and layermask. Is this possible?
Bump
Can I Use Both LayerMask and Depth on ContactFilter2D?
Yes, of course but a quick test would show you that too.
No idea what you mean by “prioritize” but any priority in doing any action would be up to you. The ContactFilter2D doesn’t control result sorting, each query performs its own sorting.
1 Like