---
tags:
    - "Physics, 2D"
---

# Edge Collider 2D Use Adjacent End Point

[Physics 2D](../../index.md) / [Collider 2D](../index.md) / [Edge Collider 2D](index.md) / **Edge Collider 2D Use Adjacent End Point**

## Description

Compares the Use Adjacent End Point property of Edge Collider 2D component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Edge Collider 2D |  |

## 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("Edge Collider 2D Use Adjacent End Point")]
    [Category("Physics 2D/Collider 2D/Edge Collider 2D/Use Adjacent End Point")]
    [Description("Compares the Use Adjacent End Point property of Edge Collider 2D component to another value")]
    
    [Image(typeof(IconLineStartEnd), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]
    
    [Parameter("Edge Collider 2D")]
    
    [Serializable]
    public class GenConditionBool_EdgeCollider2D_CheckUseAdjacentEndPoint : Condition
    {
        [SerializeField] private GetGameObject m_EdgeCollider2D = new GetGameObject(
            new GenTypeGameObject_EdgeCollider2D()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use Adjacent End Point");
            return $"{this.m_EdgeCollider2D} {member}";
        }
        
        protected override bool Run(Args args)
        {
            EdgeCollider2D component = this.m_EdgeCollider2D.Get<EdgeCollider2D>(args);
            if (component == null) return false;
            
            return component.useAdjacentEndPoint;
        }
    }
}


```

