Hey all,
When creating my Actor I used the following constructor which is referenced in the header
ACPP_Flashlight::ACPP_Flashlight(const class FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
Mesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Mesh"));
RootComponent = Mesh;
LightSpot = ObjectInitializer.CreateDefaultSubobject<USpotLightComponent>(this, TEXT("LightSpot"));
LightSpot->AttachTo(Mesh);
}
When i Create the BP and move it into the editor this problem persists when moving the object, both the mesh and Light stay at 0,0,0 position in world,