From bddb6f4c65061332e0d1697df75971df753bec3e Mon Sep 17 00:00:00 2001 From: momoma-null Date: Fri, 19 Jun 2026 13:05:23 +0900 Subject: [PATCH] =?UTF-8?q?StartWith=E3=81=A7=E5=8D=81=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Packages/UniGLTF/Runtime/UniGLTF/IO/glbImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/UniGLTF/Runtime/UniGLTF/IO/glbImporter.cs b/Packages/UniGLTF/Runtime/UniGLTF/IO/glbImporter.cs index 3df655ee8..af15521ba 100644 --- a/Packages/UniGLTF/Runtime/UniGLTF/IO/glbImporter.cs +++ b/Packages/UniGLTF/Runtime/UniGLTF/IO/glbImporter.cs @@ -76,7 +76,7 @@ namespace UniGLTF } int pos = 0; - if (!bytes[..4].Span.SequenceEqual(GLB_MAGIC_BYTES.Span)) + if (!bytes.Span.StartsWith(GLB_MAGIC_BYTES.Span)) { throw new GlbParseException("invalid magic"); }