How to get active variant and revert after button hover?

Hi,
it is my first question and activity here. I would try to write the problem clear.

How i want it to works:

  1. First person project configurator, after use “i” key, shown the UI menu
  2. Variants set and variants are in default state
  3. User hover with mouse “walls” option, then variant is switching to the “highlight” material
  4. When user unhover “walls”, variant back to the last choosen option (it should be default only at first time, but if user change material unhovering should back to the last choosen material by the user)

Issues:
To the Ad.4 - hover works perfecly


but unhovering doesn’t change material back

My intuition tells me that the problem is with getting actual variant name.
I don’t know how to contain last choosen/actually active option and used it to the backward highlight.

I hope that topic is clearly described and my english is not a though problem.

Cheers!