# Number increasing in the name of a child actor

**URL:** <https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139>\
**Category:** Programming & Scripting\
**Tags:** child-actor-componen, child-actors, unreal-engine, name, editor, CPP, Blueprint, question\
**Created:** [June 12, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139 "2023-06-12T17:24:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDenny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDenny](https://forums.unrealengine.com/u/DDenny)\
**Post date:** [June 12, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/1 "2023-06-12T17:24:41Z")

</div>

Hi,  
I have blueprint actor, which is based on cpp class. And inside of this cpp class I created a child actor component

```cpp
ACPP_Grid::ACPP_Grid()
{
 	
	PrimaryActorTick.bCanEverTick = false;
    SceneRoot = CreateDefaultSubobject<USceneComponent>(TEXT("DefaultSceneRoot"));
    SetRootComponent(SceneRoot);
   
       CA_GridVisual = CreateDefaultSubobject<UChildActorComponent>(TEXT("Grid Visual"));
       CA_GridVisual->SetEditorTreeViewVisualizationMode(EChildActorComponentTreeViewVisualizationMode::ChildActorOnly);
       CA_GridVisual->SetupAttachment(SceneRoot);
       CA_GridVisual->SetChildActorClass(ACPP_GridVisual::StaticClass());
}

```

And there is a problem. Every time when I compile my blueprint actor class based on that cpp class, number inside the name of a child actor increases.  
 ![Number mason](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/d/b8d3dba5b93ab63aa31a1361d50ba10eae9a98b6.jpeg)

Is this normal or did I do something wrong?

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [June 12, 2023, 7:51pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/2 "2023-06-12T19:51:35Z")

</div>

Hi DDenny,

That’s normal, it’s to ensure all objects have unique names.

---

<div class="post-metadata">

**Author:** ![DDenny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDenny](https://forums.unrealengine.com/u/DDenny)\
**Post date:** [June 13, 2023, 9:17am UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/3 "2023-06-13T09:17:09Z")

</div>

Hmm, ok. But…Won’t it be bad later when the numbers get big? They can’t grow endlessly for sure

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [June 13, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/4 "2023-06-13T17:10:19Z")

</div>

The numbers shouldn’t be an issue - they can get pretty big if you have a lot of objects in your level, but I’m guess the number is powered by an int32 which gives millions of numbers - the level couldn’t handle that many… You can rename them - just make sure the name is unique.

For Actors, you also have a “Label” which can be the same as other actors…

---

<div class="post-metadata">

**Author:** ![DDenny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDenny](https://forums.unrealengine.com/u/DDenny)\
**Post date:** [June 13, 2023, 9:53pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/5 "2023-06-13T21:53:35Z")

</div>

Well, I hope it will not do any bad joke with me in future. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 13, 2023, 9:54pm UTC](https://forums.unrealengine.com/t/number-increasing-in-the-name-of-a-child-actor/1197139/6 "2023-07-13T21:54:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
