Skip to content

Commit

Permalink
Make onDestroy an api member
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed Oct 13, 2024
1 parent 4473363 commit 1afeba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kt/godot-library/src/main/kotlin/godot/core/KtObject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1afeba8

Please sign in to comment.