Can't add some components in Beta?

I’ve upgraded to the Beta, but can’t seem to add some Astar components to my game objects (i.e. Seeker, AI Destination Setter). In the project view of Rider it shows as “ReadOnly”. The Pathfinding component and AIPath is accessible - along with a few others.

I’ve added the ALINE, AstarPathfindingProject and ProjectTools definition references to my only asmdef in my project.

Is my approach of extending the AIPath, Seeker, AIDestSetter, and other files deprecated?
I’m on 2022.3.13f1.0.18583, and 4.3.97

Hi

You should be able to add them to your GameObjects just fine. Do they work in the example scenes?

The package itself is read-only, so you cannot modify the source code without some extra steps (see Unity - Manual: Embedded dependencies, but most users don’t have to do this).

I haven’t imported examples yet, but I get this when trying to add.

Does anything change if you restart unity?

Unfortunately no. I’ve restarted multiple times since installing it. I’ve also reinstalled it.

Would you mind trying the latest beta (4.3.100)?

Sure thing. I just downloaded the samples, btw.
Seems they’re also missing scripts.

Hey, this happened to me as well, seems to get fixed if you remove the package from the Package Manager and the folder from Package Cache and then install again.

2 Likes

I’ve upgraded to 4.3.100 (and restarted), and it got worse. :slight_smile:
Less scripts show up, including the Pathfinder script.

At this point I’ll try Vahe_Petrosyan’s suggestion and remove the package using the package manager and clear the package cache… and install again. :crossed_fingers:

After uninstalling it, I don’t see a folder in the Package Cache.
It’s normally here, right? ‘Library\PackageCache’

Just want to make sure I removed everything before reinstalling again.

Uninstalling, restarting and installing again seemed to get me closer (if not all the way?).
Did AI Destination Setter get removed at some point? I didn’t see it in the list.

image

Hi

Would you mind trying the latest 5.0 release?

The AIDestinationSetter was previously not in the pathfinding group. Now it’s in Pathfinding/AI/Behaviors.
You can still search for it, and it will show up.

All good now. 5.0 works and I’ve found the AI Dest Setter script appropriately.