Error "Word" "WordList" undeclared identifier

Hi, I am having issues with “Word” and “WordList” showing undeclared in UE4… Not sure why



After reading someone else’s code, I went back and declared “Word” and “WordList” under Private, but I don’t understand why they didn’t declared in the public section.

TIA

You don’t need Word. Line 45 should be using WordList not Word.

They aren’t public because other classes shouldn’t ever need to have access to those variables.

Got it working now! Thank you

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

Privacy & Terms