Fix marshallers

This commit is contained in:
Wojtek Figat
2023-05-04 14:18:32 +02:00
parent a889d888ff
commit 57052b3b14
3 changed files with 12 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ namespace FlaxEngine
/// The node evaluation context structure.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
[NativeMarshalling(typeof(ContextMarshaler))]
[NativeMarshalling(typeof(ContextMarshaller))]
public struct Context
{
/// <summary>
@@ -94,8 +94,8 @@ namespace FlaxEngine
public AnimatedModel Instance;
}
[CustomMarshaller(typeof(Context), MarshalMode.Default, typeof(ContextMarshaler))]
internal static class ContextMarshaler
[CustomMarshaller(typeof(Context), MarshalMode.Default, typeof(ContextMarshaller))]
internal static class ContextMarshaller
{
[StructLayout(LayoutKind.Sequential)]
public struct ContextNative