Ufunction meaning

I want to understand what UFUNCTION() is from c++ synstax point of view. It seems to be a function call but a semicolon is missing. Can you explain this?

It’s not a function, it’s a UE-specific designation. You can add some arguments between the brackets to tell the engine how the function that follows UFUNCTION() may be used. E.g. Blueprint Callable will allow you to call thee function in a blueprint.

Some functions will require UFUNCTION() before them at all times. For instance, when you bind to any event, the function that’s invoked by the event broadcast must be a UFUNCTION(), etc.

BTW, all caps generally mean that it’s a macro, not a function, even though it may look like one. Like TEXT() macro, etc.

Hope this helps.