# Ignore Layer Collision

[Physics 3D](../index.md) / [Physics](index.md) / **Ignore Layer Collision** Layer1, Layer2, Ignore

## Description

Executes the Ignore Layer Collision static method of the Physics class

## Parameters

| Name | Description |
| :--- | :---------- |
| Layer 1 |  |
| Layer 2 |  |
| Ignore |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Ignore Layer Collision")]
    [Category("Physics 3D/Physics/Ignore Layer Collision", "Layer1, Layer2, Ignore")]
    [Description("Executes the Ignore Layer Collision static method of the Physics class")]

    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]

    [Parameter("Layer 1")]
    [Parameter("Layer 2")]
    [Parameter("Ignore")]

    [Serializable]
    public class GenInstructionPhysics_IgnoreLayerCollision_3_IntLayer1_IntLayer2_BoolIgnore : Instruction
    {
        [SerializeField] private GetInteger m_Layer1 = new GetInteger();

        [SerializeField] private GetInteger m_Layer2 = new GetInteger();

        [SerializeField] private GetBool m_Ignore = new GetBool();

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Physics");
            string method = TextUtils.ThemeAsKeyword("Ignore Layer Collision");
            return $"{className} {method} ({this.m_Layer1}, {this.m_Layer2}, {this.m_Ignore})";
        }

        protected override Awaitable Run(Args args)
        {
            Physics.IgnoreLayerCollision(
                (int) this.m_Layer1.Get(args),
                (int) this.m_Layer2.Get(args),
                (bool) this.m_Ignore.Get(args)
            );

            return Done;
        }
    }
}
```

