I really don't understand lecture number 49 at all

i don’t understand the function at all
void UBullCowCartridge::OnInput(const FString& Input)
can someone break it down ?

1 Like

If you mean what does it do then it is just called whenever enter is pressed where Input is what was entered.

If you mean the syntax

void                   - return type
UBullCowCartridge::    - The class scope to say you're 
                       - defining something within the UBullCowCartridge class
OnInput                - the name of the function
(const FString& Input) - the parameter list

const FString& means a const reference to an FString. References are covered later.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms