When I did the challenge I made the RoundsLeft variable into a UPROPERTY( BlueprintReadOnly ) instead of making a getter and adding UFUNCTION( BlueprintCallable ). What is the difference and why did we do them different?
Thanks in advance!
When I did the challenge I made the RoundsLeft variable into a UPROPERTY( BlueprintReadOnly ) instead of making a getter and adding UFUNCTION( BlueprintCallable ). What is the difference and why did we do them different?
Thanks in advance!
We aren’t getting a GetFiringState() from the code but the enum itself
UENUM()
enum class EFiringState : uint8
{
Reloading,
Locked,
Aiming,
Empty
};
And since it is preceded with UENUM() it makes it available in blueprints.
We draw out the raw info and not through a function. Get FiringState is just a blueprint way of telling what you get out