From c0cedebda16f636f2ccf19647a0c64f9dd6e4870 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 7 Aug 2022 12:35:28 +0200 Subject: [PATCH] Expose ObjectID among the native structure in GDExtension --- core/register_core_types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/register_core_types.cpp b/core/register_core_types.cpp index 1ae5d1c83ff..9ad6b0ca68a 100644 --- a/core/register_core_types.cpp +++ b/core/register_core_types.cpp @@ -269,6 +269,7 @@ void register_core_types() { _marshalls = memnew(core_bind::Marshalls); _engine_debugger = memnew(core_bind::EngineDebugger); + GDREGISTER_NATIVE_STRUCT(ObjectID, "uint64_t id = 0"); GDREGISTER_NATIVE_STRUCT(AudioFrame, "float left;float right"); GDREGISTER_NATIVE_STRUCT(ScriptLanguageExtensionProfilingInfo, "StringName signature;uint64_t call_count;uint64_t total_time;uint64_t self_time");