godot-kotlin-jvm icon indicating copy to clipboard operation
godot-kotlin-jvm copied to clipboard

Unable to assign subclass node in the editor when it inherits an abstract class.

Open datouzhu125 opened this issue 1 year ago • 0 comments

@RegisterClass
class Sample : Node2D() {
    @RegisterProperty @Export lateinit var node: Parent
}

@RegisterClass
abstract class Parent : Node2D() {
}

@RegisterClass
class Child : Parent() {
}

image

Modify Parent to a normal class, then you can assign.

@RegisterClass
open class Parent : Node2D() {
}

image

By the way, when I made the change, after building, the editor crashed,here's the error log. hs_err_pid23860.log

datouzhu125 avatar Oct 17 '24 15:10 datouzhu125