[Feature Request] Slider range for struct variables

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.

1 Like

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.

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 :slight_smile:

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 :slight_smile:

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.