Compiller Error After Upgrading

Hi,

After removing the previous 5.x version using the Package Manager, I installed v.5.3.4.

In one of my custom scripts, I have:

using Pathfinding;
...
FollowerEntity followerEntity;

followerEntity.maxSpeed = speed;
...

The above code worked well before the update.

However, after the update, I got the following error:
error CS1061: ‘FollowerEntity’ does not contain a definition for ‘maxSpeed’

I searched in VS for “FollowerEntity” and there was only one instance, i.e., the one in the FollowerEntity.cs file.

So, I removed the 5.3.4. package, searched for “FollowerEntity” again, just in case, and there was nothing found.

I then installed 5.3.4. using the scoped registry method, and the problem was still there. I restarted Unity, did another package removal and reinstallation from the scoped registry, but no change.

I’m out of ideas.

I’d really appreciate your help to solve this.

Thank you in advance.

Sounds like you do not have the entities package installed. This is an optional dependency, but required for the FollowerEntity

1 Like

Thank you for your fast reply.

Actually, the Entities package was already installed, and everything worked well. However, I noticed that the Entities package could be updated to v.1.3.14.

So, I updated it, and the problem was fixed.

Since I updated some other packages before updating A*, I suspect that their installation may have interfered with the Entities package. The problem may have even been present before updating to 5.3.4.

Thanks again!