DrawDebugLine

Programin98·2024년 5월 22일

Unreal Study

목록 보기
3/14

Blueprint

cpp

#include "DrawDebugHelpers.h"


void AItem::BeginPlay()
{
	Super::BeginPlay();

	UWorld* World = GetWorld();
	FVector Location = GetActorLocation();
	if (World)
	{
		FVector Forward = GetActorForwardVector();
		DrawDebugLine(World, Location, Location + Forward * 100.f, FColor::Red, >true, -1.f, 0, 1.f);
	}
}

Result

profile
unreal study

0개의 댓글