Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Physics2D.IgnoreLayerCollision

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static void IgnoreLayerCollision(int layer1, int layer2, bool ignore);

Parameters

layer1ID of the first layer.
layer2ID of the second layer.
ignoreShould collisions between these layers be ignored?

Description

Choose whether to detect or ignore collisions between a specified pair of layers.

Did you find this page useful? Please give it a rating: