Hello! I watch the course and there the person uses the structure and everything is ok, but when I try to do this, it says that I do not have access to this variable (located in the structure), I will be grateful if someone tells me how to fix it
P.S. You can just write public in the structure, but it’s still interesting what’s wrong
For struct, default is public. For class it’s private.
Where is GENERATED_USTRUCT_BODY() ?
Yes, I noticed this later, but still nothing has changed, the structure is still private (
GENERATED_USTRUCT_BODY is deprecated and has been replaced by GENERATED_BODY for quite a while now
1 Like