I keep getting the same error when i try to build in Xcode(like Microsoft VS but for mac)
The script is for a shooting script and was added to the Character.h of the third person template
/Users/---------/Documents/Unreal Projects/Jet/Source/Jet/Public/JetCharacter.h(35) : Error: In JetCharacter: Missing function name
here is my code
UCLASS(config=Game)
class AJetCharacter : public ACharacter
{
GENERATED_UCLASS_BODY()
/** Camera boom positioning the camera behind the character */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Camera)
TSubobjectPtr<class USpringArmComponent> CameraBoom;
/** Follow camera */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Camera)
TSubobjectPtr<class UCameraComponent> FollowCamera;
/** Base turn rate, in deg/sec. Other scaling may affect final turn rate. */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Camera)
float BaseTurnRate;
/** Base look up/down rate, in deg/sec. Other scaling may affect final rate. */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Camera)
float BaseLookUpRate;
UFUNCTION()
void FireWeapon();
UPROPERTY(VisibleAnyWhere, Category = Spawn)
TSubclassOf<class AWeapon> WeaponSpawn;
AWeapon *CurrentWeapon;
UFUNCTION(); //Error Here
virtual void BeginPlay() override;