Hi, I have a question!
i would like to know why the engine allows for us to continuously utilize the SetupInputComponent function throughout gameplay.
void UGrabber::BeginPlay()
{
Super::BeginPlay();
FindPhysicsHandleComponent();
SetupInputComponent();
}
I had a basic knowledge of C (for use with programming microcontrollers) prior to starting this course and my understanding was that after a function is called, it moves on sequentially to the next function in the main (in this case the BeginPlay) and once finished, it exits the function. Because of this, I would like to know why we can continuously press LShift and RMB to “grab” even though the begin play function is only called once when the game is started.
Thank you.
Elijah