godotengine / godotengine/godot-cpp
Properties are not inherited
Open
bug
- Dominant language
- C++
- Stars
- 2.7k
- Forks
- 809
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
I have two GDNative classes registered, A and B, where B inherits from A. When using class B in the Godot editor, the properties from class A do not show up in the node editor.
`class A : public Node {
GODOT_CLASS(A, Node);
...
int a = 0;
static void _register_methods() {
// This property does not show up on instances of class B.
godot::register_property("base/a", &A::a, 0);
}
};
class B : public A {
GODOT_CLASS(B, A);
...
int b = 0;
static void _register_methods() {
godot::register_property("base/b", &B::b, 0);
}
};
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.