Missing a using directive or an assembly reference

Good day, Im currently working with the A* pathfinding and im trying to use the pathfinding library unfortunately without any success

it gives me this error:

error CS0246: The type or namespace name ‘AIpath’ could not be found (are you missing a using directive or an assembly reference?)

my code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Pathfinding; //Using pathfinding gives error 

public class EnemyGFX : MonoBehaviour {

   public AIpath aiPath; //Gives error since its from the pathfinding script
    

    // Update is called once per frame
    void Update() {
        if(aiPath.desiredVelocity.x >= 0.01f) {
            transform.localScale = new Vector3(-1f , 1f, 1f);
        }
        else if (aiPath.desiredVelocity.x <= -0.01f){
            transform.localScale = new Vector3(1f, 1f, 1f);
        }
    }
}`

I already try to play with the asmdef file but did not succeed.

Hi

This is likely because it is spelled AIPath, not AIpath.

1 Like

Stupid me, I was actually trying this for few hours well thanks alot!