Skip to content

Component references are calling the destrcutors  #3

@Marco-v-BaldanII

Description

@Marco-v-BaldanII

@pepcots
In the Awake of Root.cpp we are creating the baker house. I took your advice from class and changed the Components work as variants than can hold either Transform or MeshRenderer components for now. The thing is i thought storing these variant components in a std::map would prevent them from being deleted but if i put breakPoints in the destructors of Component, Transform and MeshRenderer they are getting called like crazy. When i exit the scope of Root.cpp all components are presumbaly destroyed but later the transform seems to exist but not the Meshrenderer.

!!! im doing this in the "attempt-Components-with-variants" branch

Captura de pantalla 2024-11-19 172505

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions