Sub-components with the same name are not displayed on the correct parents in the Blueprints editor.  Upon creation of an Actor blueprint initially derived from a c++ base class (VRCharacter) which contains c++ Actor component classes; (LaserPointerComponent,TeleporterPointerComponent) who contain their own static mesh, and spline sub-components are displayed correctly in the blueprint editor. 

However, when editor is re-opened all sub-components root to one parent. (Motion controller left, as seen in "UE4_parenting_bug_001.png attachment)

Steps to Reproduce

Please note: I have attached three class files (six files total)  from the source to better assist with replication and reduce steps needed to reproduce.

1. Open Unreal Engine 4.20, and Create a blank C++ Project

2. Navigate to your Project build.cs file and add the following Public Dependency Modules: "NavigationSystem", "SteamVR", "SteamVRController", "HeadMountedDisplay"

 2. Create a new C++ class based off a UWidgetInteraction Component (See Attached:   LaserPointerComponent.cpp[Image Removed]LaserPointerComponent.h[Image Removed]Unable to render embedded object: File (/jira/images/icons/link_attachment_7.gif) not found.

3. Create a new C++ class based off a  USceneComponent (See Attached: TeleporterComponent.cpp[Image Removed],TeleporterComponent.h[Image Removed])

4. Create a new C++ class based off a ACharacter Actor (See Attached: VRCharacter.cpp[Image Removed],VRCharacter.h[Image Removed])

5. Create a new blueprint based off of VRCharacter.

6. Open up VRCharacter Blueprint.

7. Observe the Hierarchy of Actor components. (Please see source image Attached: "UE4 Parenting bug") [Image Removed] ")

8) Compile and Save, close the Editor and restart.

9) Re-open CharacterVR blueprint and observe Hierarchy.

Result: Left motion controller now contains all attached sub-components.

Expected: Left and Right motion controller each contain their respectively named sub-components. 


Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-65144 in the post.

Login to Vote

Affects Versions4.194.204.21
Target Fix4.23
Fix Commit5370325
Main Commit6835252
CreatedOct 12, 2018
ResolvedMar 15, 2019
UpdatedJun 4, 2019