Fix deprecation warnings in the AStar package

This commit is contained in:
Michal Pikulski
2025-09-03 09:39:52 +02:00
parent bba04ef885
commit d8f792c8e5
3 changed files with 5 additions and 5 deletions

View File

@@ -948,7 +948,7 @@ namespace Pathfinding {
/// <summary>Opens the A* Inspector and shows the section for editing tags</summary>
public static void EditTags () {
AstarPath astar = GameObject.FindObjectOfType<AstarPath>();
AstarPath astar = GameObject.FindFirstObjectByType<AstarPath>();
if (astar != null) {
editTags = true;
@@ -1365,7 +1365,7 @@ namespace Pathfinding {
[MenuItem("Edit/Pathfinding/Scan All Graphs %&s")]
public static void MenuScan () {
if (AstarPath.active == null) {
AstarPath.active = FindObjectOfType<AstarPath>();
AstarPath.active = FindFirstObjectByType<AstarPath>();
if (AstarPath.active == null) {
return;
}