I create a character which I have attached a static mesh component. I need to create on C++ side because the code will control if the mesh is visible or not
const ConstructorHelpers::FObjectFinder<UStaticMesh> meshObj(TEXT("/Game/DemoRoom/Meshes/SM_UE4_Logo")); cubeTarget = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("CubeTarget")); cubeTarget->SetupAttachment(RootComponent); cubeTarget->SetStaticMesh(meshObj.Object); cubeTarget->bEditableWhenInherited = true; cubeTarget->bSelectable = true;
So I’am seeing a UE4 Logo on my character but the size and location are not correct and I can’t edit at all with the blueprint .
Is there a way to do that ?
Thanks a lot