It’s attached to my character and no matter what i do there is no option to delete it.
We’ll not like its getting in the way or anything but the best way is to create a custom character class or to use a pawn instead (a character is just a pawn with a charactermovement component added).
The only reason that arrow is there is due to template characters.
Hope this helps
Don’t forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.
It is inherited from C++, thats why you cant delete it and it is there just as a visual aid really. You can just set its it’s visibility to off in Construction script if you dont want to see it in editor.
In the constructor of your character you can use (C++)
GetArrowComponent()->SetVisibility(false);
This will render the components visibility to not visible.
Optionally if you want to remove the component, you can do it as follows in the constructor as well, it will remove the first one found and then break out, I don’t use the optional bool parameter to promote children since I dont think the inherited component has children components.
auto components = GetComponents();
for (auto& component : components)
{
if (auto arrowComponent = Cast<UArrowComponent>(component))
{
arrowComponent->DestroyComponent();
break;
}
}
Hope this helps.