# Unreal Engine: How can I create UStaticMeshComponent in a loop?

**URL:** <https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 3, 2019, 6:56am UTC](https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289 "2019-08-03T06:56:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fb0ce95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fb0ce95](https://forums.unrealengine.com/u/anonymous_user_8fb0ce95)\
**Post date:** [August 3, 2019, 6:56am UTC](https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289/1 "2019-08-03T06:56:52Z")

</div>

I am trying to create multiple UStaticMeshComponent by using for loop but Unreal Engine keeps triggering breakpoint on CreateDefaultSubobject in Object.h(Not in my code, it’s from UE4 core API). When I’m creating a single component it’s working fine [www.myloweslife.com](https://www.myloweslife.us/) I am pretty new to UnrealEngine and C++ so I might be doing something dumb but please be easy on that:)

Thank you so much for your help.

Header

#pragma once

#include “CoreMinimal.h”  
#include “GameFramework/Actor.h”  
#include “FlowSphere.generated.h”

UCLASS()  
class CPP\_PRACTICE\_3\_API AFlowSphere : public AActor  
{  
GENERATED\_BODY()

public:  
// Sets default values for this actor’s properties  
AFlowSphere();

protected:  
// Called when the game starts or when spawned  
virtual void BeginPlay() override;

public:  
// Called every frame  
virtual void Tick(float DeltaTime) override;

private:  
//UPROPERTY()  
//TArray\<UStaticMeshComponent\*\> StaticMeshComponents;

```
UStaticMeshComponent* test;

```

};

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ff0fe33e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ff0fe33e](https://forums.unrealengine.com/u/anonymous_user_ff0fe33e)\
**Post date:** [July 16, 2020, 3:30am UTC](https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289/2 "2020-07-16T03:30:19Z")

</div>

To achieve this, the retailer needs to find out about your audits and assessments in the online Vitamin World Customer Experience Survey.  
[https://sites.google.com/view/capriottiscustomersatisfaction/vitamin-world-customer-experience-survey?authuser=4&fbclid=IwAR1Jm6GpD90eJyXXg2Nr7weGgpC2\_JucQVNFDnm1GjKfqDyMHUKC0mreTn8](https://sites.google.com/view/capriottiscustomersatisfaction/vitamin-world-customer-experience-survey?authuser=4&fbclid=IwAR1Jm6GpD90eJyXXg2Nr7weGgpC2_JucQVNFDnm1GjKfqDyMHUKC0mreTn8)

---

<div class="post-metadata">

**Author:** ![sfcsefe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sfcsefe](https://forums.unrealengine.com/u/sfcsefe)\
**Post date:** [August 22, 2020, 5:28am UTC](https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289/3 "2020-08-22T05:28:18Z")

</div>

Welcome to the Fatz Guest Satisfaction Survey! Please enter the information indicated from your receipt to begin.  
[https://topsurvey.onl/fatz-cafe-survey/](https://topsurvey.onl/fatz-cafe-survey/)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_909ebd38](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_909ebd38](https://forums.unrealengine.com/u/anonymous_user_909ebd38)\
**Post date:** [August 25, 2020, 12:09pm UTC](https://forums.unrealengine.com/t/unreal-engine-how-can-i-create-ustaticmeshcomponent-in-a-loop/453289/4 "2020-08-25T12:09:08Z")

</div>

আমরা এমন একটি এপ চাই যা ধারা আপনারও লাভবান হবেন। এবং  
আমরাও প্লে স্টোর থেকে সহজে ইনিসটল করতে পারবো।গেম তৈরি করে আমরাও লাভবান  
হব।
