# Get Ignore Layer Collision

[Physics](index.md) / **Get Ignore Layer Collision**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns the execution of Get Ignore Layer Collision static method on the Physics class

## 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
{
    [Get]
    
    [Title("Get Ignore Layer Collision")]
    [Category("Physics/Get Ignore Layer Collision")]
    [Description("Returns the execution of Get Ignore Layer Collision static method on the Physics class")]
    
    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
    
    [Serializable]
    public class GenTypeBool_Physics_GetIgnoreLayerCollision_2 : TypeBool
    {
        [SerializeField] private GetInteger m_Layer1 = new GetInteger();
        
        [SerializeField] private GetInteger m_Layer2 = new GetInteger();
        
        public override bool Get(Args args)
        {
            bool value = (bool) Physics.GetIgnoreLayerCollision(
                (int) this.m_Layer1.Get(args),
                (int) this.m_Layer2.Get(args)
            );
            return value;
        }
        
        public override string ToString()
        {
            return $"Physics Get Ignore Layer Collision ({this.m_Layer1}, {this.m_Layer2})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

