i have been trying to link my UI to my C++ Game Instance, through User Interface but i keep having an error when i disambiguate My instance class it gives me an error that says my class hides its own members- i used
please man i need help.
i have been trying to link my UI to my C++ Game Instance, through User Interface but i keep having an error when i disambiguate My instance class it gives me an error that says my class hides its own members- i used
please man i need help.
The passed in argument is named “MenuInterface” but you already have a member variable called “MenuInterface”, thats shadowing, just rename the passed in argument to “InMenuInterface” or something similiar.
Because it can become ambiguous to the compiler what you really want.
Btw. this is c++, and “this” is not needed, so you are basically telling the compiler “MenuInterface = MenuInterface”, it doesn’t know, that you want the passed in argument.