Failed to Join the game

Generally, it’s not a good idea to name a variable the same as a parameter. What you can do here is prefix the variable with In so it indicates the variable is an in parameter. Using this-> can mitigate it sometimes. putting an _ at the end is considered incredibly bad practice.

As a rule, with C++ anyway, UE breaks basic coding rules. Parameters in everyday C++ are always started with a lowercase letter. Additionally, class properties would be prefixed with an m_ and often a type i.e. m_pMenuInterface. This however is not the standards UE recommends or follows and it is best to do by changing the parameter name. I would recommend InMenuInterface instead of MenuInterface_

okay thanks

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

Privacy & Terms