- Home /
Question by
chirpywiz711 · May 15, 2020 at 10:01 PM ·
collisionspritescollider2d2d-physicssorting layers
Per-Sorting Layer Collision
Is it possible to create a system where the colliders attached to objects on collide if the attached sprites have matching SortingLayers? Thanks!
Comment
Answer by wewewu · May 16, 2020 at 06:00 AM
If you want to let GameObjects collide by Layers, goto Project Settings and goto Physics (or in your case Physics 2D) and goto Layer Collision Matrix. Hope that's what you need.
Your answer
Follow this Question
Related Questions
Spawn gap in unity? 0 Answers
CircleCollider2D vs PolygonCollider2D: which collision solving is less expensive? 1 Answer
Side Collision on "One Way" platform? 2 Answers
How to flip hitboxes if my 2D Sprite is Flipped in AnimationsEditor ? [Unity2D] 1 Answer
Bullet Trail not destroying on collision 0 Answers