jpalmer999
(jpalmer999)
1
So I am wanting to use bytes (as you would in a blueprint) for variables that don’t need the extra number size for example:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "General|Resources", meta = (ClampMin = 0, ClampMax = 8, DisplayName = "Grenades"))
int I_Grenades;
I tried doing some googling and tried uint8 and int8, but both of these threw up errors. Am I using the correct variable type?
You should share the errors that you’re getting.
This works just fine for me
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "General|Resources", meta = (ClampMin = 0, ClampMax = 8, DisplayName = "Grenades"))
uint8 I_Grenades;
1 Like
jpalmer999
(jpalmer999)
3
It worked, turned out the errors were coming from trying to make a widget in c++. Thanks for the help 