Add Serializable

This commit is contained in:
notargs
2021-11-16 19:29:40 +09:00
parent b1afcf4c01
commit 550a5ae9f8

View File

@@ -1,3 +1,4 @@
using System;
using System.Runtime.InteropServices;
using UnityEditor.UI;
using UnityEngine;
@@ -9,7 +10,7 @@ namespace UniVRM10
/// インターリーブされたメッシュの頂点情報を表す構造体
/// そのままGPUにアップロードされる
/// </summary>
[StructLayout(LayoutKind.Sequential)]
[Serializable, StructLayout(LayoutKind.Sequential)]
internal readonly struct MeshVertex
{
private readonly Vector3 _position;