Updated to Unity6.33f1 and imported updated AStarPath package

This commit is contained in:
MarcUs7i 2025-01-11 12:26:43 +01:00
parent 46ae47a9f0
commit ceba0343d3
35 changed files with 9662 additions and 1604 deletions

View file

@ -127,7 +127,7 @@ namespace Pathfinding.Serialization {
}
if (!string.IsNullOrEmpty(guid)) {
UnityReferenceHelper[] helpers = UnityEngine.Object.FindObjectsOfType(typeof(UnityReferenceHelper)) as UnityReferenceHelper[];
UnityReferenceHelper[] helpers = UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None);
for (int i = 0; i < helpers.Length; i++) {
if (helpers[i].GetGUID() == guid) {

View file

@ -341,9 +341,9 @@ namespace Pathfinding.Serialization {
}
#if UNITY_2020_1_OR_NEWER
foreach (var helper in UnityEngine.Object.FindObjectsOfType<UnityReferenceHelper>(true))
foreach (var helper in UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None))
#else
foreach (var helper in UnityEngine.Object.FindObjectsOfType<UnityReferenceHelper>())
foreach (var helper in UnityEngine.Object.FindObjectsByType<UnityReferenceHelper>(FindObjectsSortMode.None))
#endif
{
if (helper.GetGUID() == guid) {