How can I make a component visible only when the cursor is over?
thanks.
How can I make a component visible only when the cursor is over?
thanks.
Is this for a Perspective project or a Vision one? Please be sure to clarify next time (fortunately, the answer is pretty similar in either case).
In Perspective, you can simply put the object in a container and use onMouseEnter
and onMouseLeave
events on the container to set the inner component’s meta.visible property.
In Vision, you can do the same thing with a Container component and its mouseEntered
and mouseExited
events to get the desired behavior.