For the sake of Release() working

I have to declare it on the grabber.h as -

void Release();

  • in that way it works!
    This is ok? or I make a mistake in some point?
    So on my grabber.cpp :

// input binding
InputComponent->BindAction(“Grab”, IE_Released, this, &UGrabber::Drop);

void UGrabber::Drop()
{
UE_LOG(LogTemp, Warning, TEXT(“Drop this object”));
}

Privacy & Terms