I've got a unity game that has a 'connect wallet' button within it. In my react app I am listening for that being clicked, and what I would like to do is then pop up the standard multi wallet connect screen that you get when clicking a WalletMultiButton. I've tried to find some examples online and failed, and also tried to parse the git repo to understand what the button is doing.. but also failed.

Can anyone provide any suggestions?

Many Thanks

1 Answer 1

import { useWalletModal } from '@solana/wallet-adapter-react-ui';

This gives you access to:

const { setVisible } = useWalletModal();

… then you can call setVisible(true) to show the menu.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.