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

# Edge Collider 2D Adjacent Start Point

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

## Description

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

## Parameters

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

## 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 Adjacent Start Point")]
    [Category("Physics 2D/Collider 2D/Edge Collider 2D/Adjacent Start Point")]
    [Description("Compares the Adjacent Start 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")]
    [Parameter("Value")]

    [Serializable]
    public class GenConditionVector2_EdgeCollider2D_CheckAdjacentStartPoint : Condition
    {
        [SerializeField] private GetGameObject m_EdgeCollider2D = new GetGameObject(
            new GenTypeGameObject_EdgeCollider2D()
        );

        [SerializeField] private GetVector2 m_Value = new GetVector2();

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Adjacent Start Point");
            return $"{this.m_EdgeCollider2D} {member} = {this.m_Value}";
        }

        protected override bool Run(Args args)
        {
            EdgeCollider2D component = this.m_EdgeCollider2D.Get<EdgeCollider2D>(args);
            if (component == null) return false;

            return component.adjacentStartPoint == (Vector2) this.m_Value.Get(args);
        }
    }
}
```

