Using a blueprint to cycle through Level Variant Sets

I’m trying to create a blueprint so I can cycle through materials attached to the Level Variant system by clicking on a collision box

Is it possible?

I’ve written the following blueprint, following a collision box inside a blueprint, but when I click it, nothing happens


the blueprint I created


collision box activated


my level variant sets

Hi,
I don’t know anything about variants, but your “enable input” node has wrong inputs. You plugged the controller ref into the “target” input, it should be plugged in the “Player controller” input. The target should be “self”.

Also on the end overlap, you probably wanted to use “disable input” instead of “enable input”.

2 Likes

Hey there @TeteusBR! Welcome back to the community! Grot went over the visible issues! Just a reminder in case this is also issue, in your player controller you need to have click events on for them to register:

image

2 Likes

Could not get OnClickEvents to working

But managed to get the blueprint functioning as intended by pressing the “E” key

This is how my blueprint looks so far

And this is the result, as intended.
Only thing is, it needs one “false” E key press before it cycles though materials, but not a big deal of a problem

Thanks for all the help!

1 Like

For the onclick event to work, it must be enabled in the controller, as SupportiveEntity said, but your collision box must also block visibility.

I just noticed that this particular event doesn’t require “Enable input” and “Disable input” to work.