I have a error that doesn't seem to be with the code.

This is for a script that identifies if a tile has an obstacle on it. (Part of the code is for randomising the tile type) It has a 2d

Assets\Scripts\Tile.cs(34,5): error CS0246: The type or namespace name ‘Colider2D’ could not be found (are you missing a using directive or an assembly reference?)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Tile : MonoBehaviour
{
    private SpriteRenderer rend;
    public Sprite[] tileGraphics;

    public float hoverAmount;

    public LayerMask obstacleLayer;


    private void Start()
    {
       rend = GetComponent <SpriteRenderer>(); 
       int randTile = Random.Range(0, tileGraphics.Length);
       rend.sprite = tileGraphics[randTile];
    }

    private void OnMouseEnter()
    {
        transform.localScale += Vector3.one * hoverAmount;
    }

    private void OnMouseExit()
{
    transform.localScale -= Vector3.one * hoverAmount;
}

public bool IsClear()
{
    Colider2D obstacle = Physics2D.OverlapCircle(transform.position, 0.2f, obstacleLayer);
    if (obstacle != null)
    {
        return false;
    } else
    {
        return true;
    }
}

    
}

It’s a spelling issue. The correct spelling is “Collider2D”, not Colider2D".

Wish I had a penny for every Class name I’ve misspelled…