// Sets default values AFloatingActor::AFloatingActor() {VisualMesh &#61; CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));VisualMesh->SetupAttachment(RootComponent);static ConstructorHelpers::FObjectFinder<UStaticMesh>CubeVisualAsset(TEXT("/Game/StarterContent/Shapes/Shape_Cube.Shape_Cube"));if(CubeVisualAsset.Succeeded()){VisualMesh->SetStaticMesh(CubeVisualAsset.Object);VisualMesh->SetRelativeLocation(FVector(0.0f,0.0f,0.0f));}// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don&#39;t need it.PrimaryActorTick.bCanEverTick &#61;true; }