USceneComponent defined as subobject of another USceneComponent on C++ gets wrong parent

When trying to use the following setup:

  1. Have a C++ Class for a UBoxComponent, which has a sub component (like a Paperflipbook)

  2. Setup the constructor of this new component

    UPROPERTY(BlueprintReadOnly, EditAnywhere, Category=“Display”)
    class UPaperFlipbookComponent *Pointer;

    –CONSTRUCTOR–
    //Create sub objects
    Pointer = CreateDefaultSubobject(“Pointer”);
    Pointer->AttachToComponent(this,FAttachmentTransformRules::KeepRelativeTransform);

  3. When adding this new object, the actor will first, not detect the SubObject as part of the hierarchy

233551-untitled2.png

  1. When deselecting the object and selecting it again, the object get “setted” but we’re unable to remove it… it gets ATTACHED forever to the actor

233552-untitled3.png

After deleting the custom component, the subcomponent will still stay… nothing EXCEPT UNDO, can remove this sub component

233553-untitled4.png

Awesome… didn’t know that… will create a bug report…
Thanks a lot!

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks