-
Notifications
You must be signed in to change notification settings - Fork 25
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
Warning logged when deleting folder #21
Comments
Looking into this now. The issue here is that the GUID is coming back empty when adding a new empty folder, even in the deferred action. static void OnWillCreateAsset(string assetPath)
{
UnityEngine.Debug.Log("Asset path: " + assetPath);
if (ProjectCuratorData.IsUpToDate) {
Actions.Enqueue(() => {
UnityEngine.Debug.Log($"Guid string is: " + AssetDatabase.AssetPathToGUID(assetPath));
var guid = AssetDatabase.GUIDFromAssetPath(assetPath);
if (!guid.Empty()) {
ProjectCurator.AddAssetToDatabase(guid);
} else {
UnityEngine.Debug.LogWarning($"GUID for asset at path {assetPath} is empty");
}
});
}
}
|
Worked it out. It's a bug in Unity that causes the wrong path to be passed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps only on empty folder
The text was updated successfully, but these errors were encountered: