Skip to content

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

Open
@datouzhu125

Description

@datouzhu125
@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions