Arrow;"> Arrow;"> Arrow;">
.h
#include "Components/ArrowComponent.h"

	// Arrow Component
	UPROPERTY(VisibleAnywhere)
	TObjectPtr<UArrowComponent> Arrow;
.cpp
// コンストラクタ

	// ArrowComponentを作成する
	Arrow = CreateDefaultSubobject<UArrowComponent>(TEXT("ArrowComponent"));

	// ArrowComponentの位置を設定する
	Arrow->SetRelativeLocation(FVector(50.0f, 0.0f, 0.0f));

	// ArrowComponentをStaticMeshComponentにAttachする
	Arrow->SetupAttachment(StaticMesh);

Untitled