MenuInterface hides class member

can anyone please help me with this??
i did exactly as the video lecture, checked for typos,
please if someone would help, it’ll be great.

Shadowing is treated as an error in later versions of Unreal. Just name the parameter something else.

class Example
{
    int Value = 10;
public:
    void Shadow(int Value);
//              ^^^^^^^^^
// same name as member variable
};

i got it thanks man!!

sorry for asking for help again but now my Editor crashed everytime i press play, and i get a crash report for the Host() call using the menuinterface pointer.

As you have that check there I would assume it’s the MainMenu instance that is actually nullptr.

i tried everything and lastly copied The course’s code from git hub and it still doesnt work.

Where are you calling HostServer?

Onclicked on Host button

Nevermind I think its a small syntax or typo somewhere, i am just gonna copy the course repo from github.

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

Privacy & Terms