grab log
This commit is contained in:
parent
93ab3251b7
commit
297fe4717c
@ -36,7 +36,9 @@ void UGrabber::BeginPlay()
|
||||
InputComponent = GetOwner()->FindComponentByClass<UInputComponent>();
|
||||
if (InputComponent) {
|
||||
UE_LOG(LogTemp, Warning, TEXT("%s has a InputHandle"), *(GetOwner()->GetName()));
|
||||
InputComponent->BindAction("Grab", IE_Pressed, this, &UGrabber::Grab)
|
||||
|
||||
InputComponent->BindAction("Grab", IE_Pressed, this, &UGrabber::Grab);
|
||||
|
||||
} else {
|
||||
UE_LOG(LogTemp, Error, TEXT("%s has no InputHandle"), *(GetOwner()->GetName()));
|
||||
}
|
||||
@ -45,7 +47,7 @@ void UGrabber::BeginPlay()
|
||||
|
||||
// Raycast and grab what is in reach
|
||||
void UGrabber::Grab(){
|
||||
|
||||
UE_LOG(LogTemp, Warning, TEXT("GRABBING!"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user