From 053e52c91f4d087d41930b3e83095d977f8172af Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 29 Oct 2025 22:18:01 +0100 Subject: [PATCH] Fix compilation for bindings only without scripting internal host defined --- Source/Engine/Engine/NativeInterop.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Engine/NativeInterop.cs b/Source/Engine/Engine/NativeInterop.cs index 2d8f8db84..209eb54e2 100644 --- a/Source/Engine/Engine/NativeInterop.cs +++ b/Source/Engine/Engine/NativeInterop.cs @@ -425,6 +425,8 @@ namespace FlaxEngine.Interop var fieldOffsetPtr = (IntPtr*)field.FieldHandle.Value; // Pointer to MonoClassField fieldOffsetPtr += 3; // Skip three pointers (type, name, parent_and_flags) return *(int*)fieldOffsetPtr - IntPtr.Size * 2; // Load the value of a pointer (4 bytes, int32), then subtracting 16 bytes from it (2 pointers for vtable and threadsync) +#else + throw new NotImplementedException(); #endif }