From 857acfff14d716a85b675bd35e003a934e0b2b50 Mon Sep 17 00:00:00 2001 From: Will Date: Mon, 1 Feb 2016 14:38:57 -0700 Subject: [PATCH] UIVertex needs to be serializable as well. --- LibBSP/Source/Structs/Common/UIVertex.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LibBSP/Source/Structs/Common/UIVertex.cs b/LibBSP/Source/Structs/Common/UIVertex.cs index 969908c..624364b 100644 --- a/LibBSP/Source/Structs/Common/UIVertex.cs +++ b/LibBSP/Source/Structs/Common/UIVertex.cs @@ -17,10 +17,10 @@ namespace LibBSP { using Vector4 = Vector4d; #endif /// - /// Replacement UIVertex struct for Unity versions before 4.6, and standalone projects. + /// Replacement UIVertex struct for Unity versions before 4.6, and standalone projects. /// - /// 4.5 had UIVertex but the implementation was incomplete. - public struct UIVertex { + /// Unity 4.5 had UIVertex but the implementation was incomplete. + [Serializable] public struct UIVertex { public Color32 color; public Vector3 normal; public Vector3 position; @@ -28,6 +28,9 @@ namespace LibBSP { public Vector2 uv0; public Vector2 uv1; + /// + /// Simple UIVertex with sensible settings. + /// public static UIVertex simpleVert { get { return new UIVertex {