Skip to content

Add support for component inheritance to the reflection framework #1345

@morganlaowang

Description

@morganlaowang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions