diff --git a/Assets/UniGLTF/Runtime/Extensions/glTFExtensions.cs b/Assets/UniGLTF/Runtime/Extensions/glTFExtensions.cs index 494610167..bbffdb6aa 100644 --- a/Assets/UniGLTF/Runtime/Extensions/glTFExtensions.cs +++ b/Assets/UniGLTF/Runtime/Extensions/glTFExtensions.cs @@ -72,6 +72,14 @@ namespace UniGLTF { return cv.ComponentType; } + else if (typeof(T) == typeof(sbyte)) + { + return glComponentType.BYTE; + } + else if (typeof(T) == typeof(byte)) + { + return glComponentType.UNSIGNED_BYTE; + } else if (typeof(T) == typeof(ushort)) { return glComponentType.UNSIGNED_SHORT;