Reparenting Entity Visibility Bug

Summary

Moving an entity from one parent to another causes the mesh_component to become invisible.

I was attempting to make a custom door component. As the component is initializing, it finds the door panel mesh entity and attempts to attach it to the door hinge entity. It seems that removing or reparenting the entity in any way triggers the bug.

I attempted several different methods to work around this. Basic attempt, just tried attaching to door hinge. Also tried removing from parent first then adding to door hinge. Also tried removing from parent, attaching to the simulation entity, then attaching to the door hinge. Also tried toggling mesh components visibility. Also tried just adding to the simulation entity. Also tried adding sleeps between. The mesh component does maintain its collision + transforms, but all attempts had the same result of the mesh component not being visible.

I look to the forums to see if anyone else is experiencing this bug, and find this thread where it’s set to be fixed in v38.00, then edited later saying it wasn’t fixed. Then the thread was closed because “Couldn’t be reproduced”.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Scene Graph

Steps to Reproduce

  1. Create a prefab with this hierarchy:
    —RootEntity
    — —DoorPivotEntity (tagged door_pivot_tag)
    — —MeshRootEntity
    — — —DoorPanelEntity (tagged door_panel_tag, and mesh_component attached)

  2. Make a verse script that grabs the door pivot and door panel from their tags, then it attaches the door panel entity to the door pivot entity (use any method).

  3. Place the prefab in the level, hit play, observe bug.

Expected Result

The expected result is for the DoorPanelEntity to attach to DoorPivotEntity and maintain its global transform.

Observed Result

The observed result is the mesh_component of DoorPanelEntity losing visibility but maintaining transform + collision

Platform(s)

All Platforms

FORT-1105773 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.