Im trying to learn programing c++ with simple ping pong platform, i copy my code with tutorial and i have a lot of errors.

Hi,

I try to make moving platform with tutorial, i copy exactly but i have arrors, help me please.

where the error is about ‘not recognizing EditDeaultOnly’

lets start with spelling, then we will go to possibly deeper issues. (you can directly copy code by doing “tilde”/“`” x3 on a line then doing it again on another line to get a code block like so)

UPROPERTY(EditDefaultOnly)

// this should be 
UPROPERTY(EditDefaultsOnly) // there should be an "s" on "defaults"

you can also check your spelling for the macros and the documentation language by navigating to UE_5\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectMacros.h in your IDE tree hierarchy, or doing right-click “Go To Declaration” on any of the terms that are recognized.

1 Like

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