# CreateDefaultSubobject On Particular Blueprint

**URL:** <https://forums.unrealengine.com/t/createdefaultsubobject-on-particular-blueprint/485959>\
**Category:** C++\
**Tags:** unreal-engine, multiple-instance, Blueprint, question, CPP\
**Created:** [July 9, 2021, 9:26am UTC](https://forums.unrealengine.com/t/createdefaultsubobject-on-particular-blueprint/485959 "2021-07-09T09:26:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mynkela](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mynkela](https://forums.unrealengine.com/u/Mynkela)\
**Post date:** [July 9, 2021, 9:26am UTC](https://forums.unrealengine.com/t/createdefaultsubobject-on-particular-blueprint/485959/1 "2021-07-09T09:26:08Z")

</div>

I use multiple blueprint based on single Parent C++ class

![343691-screenshot-2021-07-09-142557.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/8/878c4f9fd0c499d8dcaf6fcf526b64f080ec47f3.jpeg)

But, Challenging is Create-Subobject or Impliment Changes on only particular blueprint

> this is my .h file

```
protected:
    	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "theMovingPlatformObstacles") UTimelineComponent* MovingPlatformTimelineComponent;

```

> & this .cpp class

```
if(myObstacle == Obstacles::None) ObstacleStaticMeshComponent = Cast<UStaticMeshComponent>(GetDefaultSubobjectByName(TEXT("Default_StaticMeshComponent")));
else if (myObstacle == Obstacles::MovingPlatform) { ObstacleStaticMeshComponent = Cast<UStaticMeshComponent>(GetDefaultSubobjectByName(TEXT("MovingPlatform_StaticMeshComponent")));
	MovingPlatformTimelineComponent = CreateDefaultSubobject<UTimelineComponent>(TEXT("MovingPlatformTimelineComponent")); }

```

But in Blueprint Component(UTimelineComponent) not created in any blueprint otherwise use method CreateDefaultSubobject without Enum() Impliment or Create in all Actor Blueprint  
**How I can Impliment On Particular Blueprint, If you have any idea please Answer**
