Skip to content

Update AssetDatabase.FindAssets usages return type #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/VersionHandler/src/VersionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private static void BootStrap() {
if (implAvailable) return;

var assemblies = new List<Match>();
foreach (string assetGuid in AssetDatabase.FindAssets("l:gvh")) {
foreach (var assetGuid in AssetDatabase.FindAssets("l:gvh")) {
string filename = AssetDatabase.GUIDToAssetPath(assetGuid);
var match = VERSION_HANDLER_FILENAME_RE.Match(filename);
if (match.Success) assemblies.Add(match);
Expand Down
2 changes: 1 addition & 1 deletion source/VersionHandlerImpl/src/VersionHandlerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,7 @@ public static string[] SearchAssetDatabase(string assetsFilter = null,
}
var assetGuids = searchDirectories == null ? AssetDatabase.FindAssets(assetsFilter) :
AssetDatabase.FindAssets(assetsFilter, searchDirectories);
foreach (string assetGuid in assetGuids) {
foreach (var assetGuid in assetGuids) {
string filename = AssetDatabase.GUIDToAssetPath(assetGuid);
// Ignore non-existent files as it's possible for the asset database to reference
// missing files if it hasn't been refreshed or completed a refresh.
Expand Down
Loading