I have the following line and declaration
SceneComp = CreateDefaultSubobject(TEXT(“LineEndSceneComp”));
But when I see it in my character blueprint I am not allowed to transform it in any way. But if i press the “Add component” and pick “Scene” manually, its instantly moveable?
I found that you can SetMobility but it doesn’t work.
SceneComp->SetMobility(EComponentMobility::Movable);
Without having it movable I cannot do the following, so please advise if you can.
FVector StartOfLine = GetCapsuleComponent()->GetComponentLocation();
FVector EndOfLine = SceneComp->GetComponentLocation();
GetWorld()->LineTraceSingleByChannel(*HitResult, StartOfLine, EndOfLine, ECC_Visibility);
I much appreciate your time.
![alt text][1]