Serializable

This commit is contained in:
notargs
2021-11-16 19:30:00 +09:00
parent 550a5ae9f8
commit 4da92aa797

View File

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