-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Add support for component inheritance to the reflection framework #1345
Labels
enhancement
New feature or request
Comments
Can you share the entire code example that reproduces the issue, including where you add the component to an entity? |
|
Ah, I see the issue. The reflection framework doesn't interpret component inheritance yet. That's something that'll have to get addressed. |
SanderMertens
changed the title
component inheritance has the data error
Add support for component inheritance to the reflection framework
Dec 18, 2024
SanderMertens
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Dec 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I use component like that:
struct Base
{
int base = 1;
}
struct A : Base
{
int base = 2;
int a = 2;
}
struct A : Base
{
int base = 3;
int b = 3;
}
I also used "e.component().is_a()" and also the struct B
I used system and query
I added the componets and changed the data from the explorer
Expected behavior
the data has wrong that the default value not used and the data changed not sync.
if I dont used inheritance the problem will not happened
Additional context
I use the version 4.0.1
The text was updated successfully, but these errors were encountered: