Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
datouzhu125 opened this issue Oct 17, 2024 · 0 comments

Comments

@datouzhu125
Copy link
Contributor

datouzhu125 commented Oct 17, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants