Skip to content

Commit

Permalink
Log UnityGLTF exceptions when falling back to legacy
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Dec 9, 2024
1 parent e344cce commit 76d9082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/ImportGltfast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private static async Task _ImportUsingUnityGltf(
catch (Exception e)
{
Debug.LogError("Failed to import using UnityGltf. Falling back to legacy import");
Debug.LogError($"UnityGltf Exception: {e}");
// Fall back to the older import code
GameObject go = _ImportUsingLegacyGltf(localPath, assetLocation);
model.CalcBoundsGltf(go);
Expand Down

0 comments on commit 76d9082

Please sign in to comment.