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