# Actor Components Incorrectly Appearing in Scene Component Hierarchy in Blueprint Editor 

**URL:** <https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [December 17, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838 "2025-12-17T17:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 17, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838/1 "2025-12-17T17:39:33Z")

</div>

Hi,

We’ve been experiencing the following issue.

Non-scene UActorComponent subclasses created with CreateDefaultSubobject in C++ can incorrectly appear in the scene component hierarchy section of the Blueprint editor’s Components panel, instead of in the Actor Components section below the separator.

The bug is name-dependent:

- Actor components with names alphabetically before the root scene component’s name → incorrectly placed above separator

- Actor components with names alphabetically after the root scene component’s name → correctly placed below separator

Example from our codebase:

- Root scene component: PawnCollision0 (starts with “P”)

- NavigationInvokerComponent (starts with “N”) → appeared above separator (BUG: “N” \< “P”)

- FlyComponent (starts with “F”) → appeared below separator (by chance, due to sort algorithm)

Root Cause

The bug is in FFBlueprintEditorDefaultSortUICustomization::SortSubobjectData in BlueprintEditorSCSEditorUICustomization.cpp.

The sort comparator correctly handles the case where A is a scene component and B is not:

```auto
 if (A.GetData()->IsSceneComponent())
 {
   if (B.GetData()->IsSceneComponent())
   {
     return A.GetData()->GetDisplayName().CompareTo(B.GetData()->GetDisplayName()) < 0;
   }
   return !B.GetData()->IsActor(); // A (scene) comes before B (non-scene)
 }

```

However, it does NOT handle the inverse case where A is NOT a scene component but B IS a scene component. Instead, it falls through to alphabetical comparison.

This creates a non-transitive comparator.

When the actor component’s name is alphabetically less than a scene component’s name (e.g., “NavigationInvokerComponent” \< “PawnCollision”), the comparator incorrectly returns true, placing the actor component before the scene component.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 17, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838/2 "2025-12-17T17:39:37Z")

</div>

**Steps to Reproduce**  
1. Create a C++ Actor class with the following components created via CreateDefaultSubobject:

// In constructor:

// Root scene component - name starts with “S”

SphereComponent = CreateDefaultSubobject\<USphereComponent\>(TEXT(“SphereCollision”));

SetRootComponent(SphereComponent);

// Actor component with name alphabetically BEFORE “SphereCollision” - will show BUG

ActorComponentA = CreateDefaultSubobject\<UActorComponent\>(TEXT(“AComponentTest”)); // “A” \< “S”

// Actor component with name alphabetically AFTER “SphereCollision” - will show correctly

ActorComponentB = CreateDefaultSubobject\<UActorComponent\>(TEXT(“ZComponentTest”)); // “Z” \> “S”

2. Create a Blueprint that inherits from this C++ class

3. Open the Blueprint in the editor and observe the Components panel

Expected: Both AComponentTest and ZComponentTest appear below the separator line, in the “Actor Components” section.

Actual: AComponentTest appears above the separator (in the scene hierarchy section) because “A” \< “S” alphabetically. ZComponentTest correctly appears below the separator because “Z” \> “S”.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 17, 2025, 5:41pm UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838/3 "2025-12-17T17:41:02Z")

</div>

We fixed it by replacing the sort comparator with one that explicitly handles all cases symmetrically:

```auto
  bool FFBlueprintEditorDefaultSortUICustomization::SortSubobjectData(TArray<FSubobjectDataHandle>& SubobjectData)
  {
      SubobjectData.Sort([](const FSubobjectDataHandle& A, const FSubobjectDataHandle& B)
      {
          const FSubobjectData* AData = A.GetData();
          const FSubobjectData* BData = B.GetData();
 
          // If A is a child of B, sort B ahead
          if (AData->GetParentData() == BData)
          {
              return false;
          }
 
          const bool bAIsScene = AData->IsSceneComponent();
          const bool bBIsScene = BData->IsSceneComponent();
          const bool bAIsActor = AData->IsActor();
          const bool bBIsActor = BData->IsActor();
 
          // Actors should always be first
          if (bAIsActor && !bBIsActor)
          {
              return true;
          }
          if (bBIsActor && !bAIsActor)
          {
              return false;
          }
          if (bAIsActor && bBIsActor)
          {
              return AData->GetDisplayName().CompareTo(BData->GetDisplayName()) < 0;
          }
 
          // Scene components should sort ahead of non-scene components
          if (bAIsScene && !bBIsScene)
          {
              return true;
          }
          if (bBIsScene && !bAIsScene)
          {
              return false; // <-- This was the missing case!
          }
 
          // Both are same type, sort by display name
          return AData->GetDisplayName().CompareTo(BData->GetDisplayName()) < 0;
      });
 
      return true;
  }

```

Does it make sense? 😃

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![VBarataBLab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VBarataBLab](https://forums.unrealengine.com/u/VBarataBLab)\
**Post date:** [December 19, 2025, 3:34am UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838/4 "2025-12-19T03:34:57Z")

</div>

Hi Mickael,

Thank you for reporting this issue and providing small repro steps. I was able to reproduce this behavior here, and I believe both your assessment and fix are correct.

This bug seems to have been introduced by CL 45871568 (git [40b3f0d](https://github.com/EpicGames/UnrealEngine/commit/40b3f0d0c9b40b64a01f1f41204bb3e3651ca656)) in September. Interestingly, it can be reproduced even without C++, by simply creating a blueprint actor, adding a non-scene component, renaming it to “A” and duplicating it several times. After around 8 duplicates, the sort will start producing visibly inconsistent results.

I have created an internal bug report for this issue. Here’s the tracking number for it: [UE-358654](https://issues.unrealengine.com/issue/UE-358654). This link should become available once the engine devs mark it as public.

Let me know if you need anything else regarding this topic!

Best regards,

Vitor

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [May 18, 2026, 2:56pm UTC](https://forums.unrealengine.com/t/actor-components-incorrectly-appearing-in-scene-component-hierarchy-in-blueprint-editor/2692838/5 "2026-05-18T14:56:06Z")

</div>

I assume I have the same bug?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/0/8b0c0ceedf5a9451be95bfda41902e3fc2383bc7.png)

I have quite and “S” starting actually even movement and events in the C++ side starts with S. Not sure wanted to ask and additionally voted the ticket up.
