May I use "PlayerID" as my ustruct member variable name?
If I use this name (`PlayerID`) as my struct member variable name, then in
and this causes error about that my struct doesn't have PlayerId member. Is this some kind of engine restriction or is it a bug?
That looks like an FName issue.
Unfortunately, due to the way FNames work (which is what the UHT uses when parsing those variables), if it sees a variable called PlayerId before PlayerID, it will always produce code using PlayerId (as FName is case-insensitive, and not case-preserving) :(
Using PlayerId as your variable name should "fix" the issue for now.
answered Jul 20 '14 at 12:44 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here