From 907044ed783bb932e4ca8c5ea29449c00a8f18ab Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 14 Oct 2021 19:05:15 +0900 Subject: [PATCH] byte, sbyte --- Assets/UniGLTF/Runtime/Extensions/glTFExtensions.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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;