I did this. But it shows not compatible message when connecting to Set Variable. PFA screen.
And I have two cubes: one is blueprint class by name CubeOfWorld and another is regular static mesh without blueprint.
Now I removed the second cube and only one cube remains.