[FIXED] 2D Platformer – The name Seeker does not exist in current context

Hi All,

Firstly thank you for taking the time to look at my question.

I’m new to making games and Unity and I’m currently working my way through a 2D platformer tutorial and I’ve hit a snag I can’t solve.

When I try to create a new Seeker object from the Astrostar I’m getting the following error:


Here is my code:

using UnityEngine;
using Pathfinding;

[RequireComponent (typeof(Rigidbody2D))]
[RequireComponent (typeof (Seeker))]

public class EnemyAI : MonoBehaviour {

    public Transform target;
    public float updateRate = 2; //times per second

    private Seeker seeker;
    private Rigidbody2D rb;

    //The calculated path
    public Path path;

    //The AI's speed per second
    public float speed = 300f;


I’m not sure whether it’s related but I have another few error messages that have popped up today that weren’t there when I was working yesterday. I cannot work out for the life of me what I did to incur these. Despite these messages the game still works as it did yesterday.

Thanks in advance for any advice you can offer!

looks to me is if mono or vs, whatever you’re using, is out of sync with the project. otherwise unity would show the same error. in unity go you Edit → Open C# Project. if that does not help you could also delete the IDE related files from your unity project folder while it’s closed and open it again