Add Component
> Massive Loop
> Interactive
> MLClickable
MLClickable Component
MLClickable component makes a GameObject clickable by player. You can register the click event and use it in variety of ways. For example, it can be used as a simple button, or you can use the Link functionality to load a URL in a link. The Link functionality is particularly useful for NFT links.
Requires
- Collider in order to be interactable.
Parameters
Name | Description |
---|---|
ShowText | Show Text when user points on the object. Similar to on hover. |
- Text | The text which shown to user when points the object |
OpenURL | Opens the provided link in the specified browser when object is clicked |
- BrowserType | Where to open the link? Internal browser or external browser? |
- URL | The URL to open when clicked. |
Click | Event Handler when the user clicks the object. |
PointerEnter | Event Handler when the user points the pointer to the object. |
PointerExit | Event Handler when the user stops pointing to the object. |