Hi,
I have blueprint actor, which is based on cpp class. And inside of this cpp class I created a child actor component
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.
Is this normal or did I do something wrong?