From 4da92aa797d3f5319e43fc2ccd2fd53558d2d789 Mon Sep 17 00:00:00 2001 From: notargs Date: Tue, 16 Nov 2021 19:30:00 +0900 Subject: [PATCH] Serializable --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs index 4db319f40..4bb6d1d35 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs @@ -1,3 +1,4 @@ +using System; using System.Runtime.InteropServices; using UnityEngine; using UnityEngine.Rendering; @@ -8,7 +9,7 @@ namespace UniGLTF /// インターリーブされたメッシュの頂点情報を表す構造体 /// そのままGPUにアップロードされる /// - [StructLayout(LayoutKind.Sequential)] + [Serializable, StructLayout(LayoutKind.Sequential)] internal readonly struct MeshVertex { private readonly Vector3 _position;