Hi
I have noticed that there is no way to add a Slider Range and a Value Range to integers and floats which are declared in a Structure. Having this implemented will be of great help if one is working purely in blueprints.
This feature may also be extended to individual elements of an array which is instance editable
I was searching to check if itâs possible and run into this post. Totaly agree with that idea. Itâs required for me.
Aha! Sounds like easy and doable. But as IoIIaIoI says âHaving this implemented will be of great help if one is working purely in blueprintsâ
Still, thanks for the tips
You can make a C++ class using the blueprint function library base, declare all of your structs there with their variables and give them meta data for the sliders. Then it works
Very easy, very doable. And you can do it with some copy/paste of the format in C++, add all your struct variables in there and youâre good. Will look like this:
// Your Custom Struct
USTRUCT(BlueprintType)
struct FMy_Struct_name
{
GENERATED_USTRUCT_BODY()
public:
// Struct variable 1
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0", ClampMax = "100", UIMin = "0", UIMax = "100"))
int32 Variable1;
// Struct variable 2
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (ClampMin = "0", ClampMax = "100", UIMin = "0", UIMax = "100"))
int32 Variable2;
âŚso on and so on
};
The âmetaâ part is where you create the slider stuff, min and max both for slider and typed in input. Slider is the âUIâ part.