From 1afeba8ddb3370110ac90487e65ac0ee7da5c77f Mon Sep 17 00:00:00 2001 From: chippmann Date: Sun, 13 Oct 2024 12:04:33 +0200 Subject: [PATCH] Make onDestroy an api member --- kt/godot-library/src/main/kotlin/godot/core/KtObject.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt b/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt index c8aadf41c..b00816dc2 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt @@ -94,6 +94,7 @@ abstract class KtObject { * By the time a RefCounted counter reaches 0, its JVM instance has already being GCed and can't be used anymore. */ @Suppress("FunctionName") + @GodotApiMember open fun _onDestroy() = Unit fun free() {