From 50fd2deede92bcc7d0c502731092da89aa2c1e41 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Wed, 7 Aug 2019 18:29:40 -0700 Subject: [Mono] Make all structs seralizable --- modules/mono/glue/Managed/Files/AABB.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/mono/glue/Managed/Files/AABB.cs') diff --git a/modules/mono/glue/Managed/Files/AABB.cs b/modules/mono/glue/Managed/Files/AABB.cs index a2ebbc0736..98a73382f4 100644 --- a/modules/mono/glue/Managed/Files/AABB.cs +++ b/modules/mono/glue/Managed/Files/AABB.cs @@ -5,6 +5,7 @@ // file: core/variant_call.cpp // commit: 5ad9be4c24e9d7dc5672fdc42cea896622fe5685 using System; +using System.Runtime.InteropServices; #if REAL_T_IS_DOUBLE using real_t = System.Double; #else @@ -13,6 +14,8 @@ using real_t = System.Single; namespace Godot { + [Serializable] + [StructLayout(LayoutKind.Sequential)] public struct AABB : IEquatable { private Vector3 _position; -- cgit v1.2.3