diff --git a/Assets/UniGLTF/Runtime/Extensions/UnityExtensions.cs b/Assets/UniGLTF/Runtime/Extensions/UnityExtensions.cs index dc394f2f0..43b7da04b 100644 --- a/Assets/UniGLTF/Runtime/Extensions/UnityExtensions.cs +++ b/Assets/UniGLTF/Runtime/Extensions/UnityExtensions.cs @@ -438,7 +438,7 @@ namespace UniGLTF } else { - throw new ArgumentException($"no {nameof(T)}"); + throw new ArgumentException($"no {typeof(T)}"); } } @@ -450,7 +450,7 @@ namespace UniGLTF } else { - throw new ArgumentException($"no {nameof(T)}"); + throw new ArgumentException($"no {typeof(T)}"); } }