Creating a UFUNCTION

UFUNCTION() is useful because it is a C++ function that can be called from both your C++ client code as well as Blueprint diagrams. Any C++ function can be marked as a UFUNCTION().