# Problem with blueprint mesh component

**URL:** <https://forums.unrealengine.com/t/problem-with-blueprint-mesh-component/305263>\
**Category:** Blueprint\
**Tags:** scenecomponent, unreal-engine, CPP, Blueprint, question\
**Created:** [January 28, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/problem-with-blueprint-mesh-component/305263 "2015-01-28T16:18:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![polterageist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@polterageist](https://forums.unrealengine.com/u/polterageist)\
**Post date:** [January 28, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/problem-with-blueprint-mesh-component/305263/1 "2015-01-28T16:18:04Z")

</div>

Hello! I have a UObject derrived class in code, that has three components on it: SceneComponent(root), MeshComponent and CapsuleComponent(in order of inheritance). Before I had just mesh and capsule components and blueprints, which are childrens of that class, was in scenes. So, when i added root scenecomponent, my objects meshes had moved to zero of scene, but UObject’s transforms wasn’t changed, and now it doesn’t apply to mesh position.  
Here is my class:  
// EoStation.h  
UCLASS()  
class EODEMO\_API AEoStation : public AActor  
{  
GENERATED\_UCLASS\_BODY()

```
	UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Gameplay")
	FName ObjectType;
	
	UPROPERTY(Category = "Scene", VisibleAnywhere, BlueprintReadOnly)
	class USceneComponent* Root;

	UPROPERTY(Category = "Rendering", VisibleAnywhere, BlueprintReadOnly)
	class UStaticMeshComponent* Mesh;

	UPROPERTY(Category = "Collision", VisibleAnywhere, BlueprintReadOnly)
	class UCapsuleComponent* DockTrigger;
};

// EoStation.cpp
AEoStation::AEoStation(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
	Root = ObjectInitializer.CreateDefaultSubobject<USceneComponent>(this, TEXT("Root"));
	RootComponent = Root;

	Mesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Mesh"));
	Mesh->AttachParent = Root;

	DockTrigger = ObjectInitializer.CreateDefaultSubobject<UCapsuleComponent>(this, TEXT("DockTrigger"));
	DockTrigger->AttachParent = Mesh;
}

```

If I replace object on scene, then all is correct. Do I need to replace all changed blueprints, or there is any way to fix it without recreating all scenes?
