Skip to content

Commit

Permalink
fix: fixing using for editor
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Oct 27, 2021
1 parent f66c3b6 commit 27c9522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage/Runtime/ClientObjectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ void OnValidate()
if (prefab == existing)
continue;

string pathA = AssetDatabase.GetAssetPath(prefab);
string pathB = AssetDatabase.GetAssetPath(existing);
string pathA = UnityEditor.AssetDatabase.GetAssetPath(prefab);
string pathB = UnityEditor.AssetDatabase.GetAssetPath(existing);
logger.Assert(prefab.PrefabHash == existing.PrefabHash);
logger.LogError($"2 prefabs had the same hash:'{hash}', A:'{prefab.name}' B:'{existing.name}'. Path A:{pathA} Path B:{pathB}");
}
Expand Down

0 comments on commit 27c9522

Please sign in to comment.