How to use Rive System Enums (example)

I was trying to figure out how to use Rive’s native “System Enums” - i wanted to Show/Hide a Layout item with a Boolean property of my viewmodel, but it didn’t work.

So here is what worked:

1. In my View Model, i added a new Enum property
2. In it’s Dropdown Menu i selected “Layout Display”
3. Then on my “Show/Hide” property of the Layout (the “Eyeball”) - i bound it to the newly created Enum property of my View Model
4. In the “Converter” Dropdown of the binding menu, you will find a Converter (you don’t need to add it in the Converters tab, it’s there by default) called “System Enum to Uint” - select that.
5. The property should show a green outline, which tells you the binding is working.

Now in your view model property’s value, you see a new dropdown which shows “Show” and “Hide” as options - setting that will successfully show and hide your Layout! 🚀

I didn’t see this documented anywhere, but maybe it helps someone! 🤓