🧑💻 WalletConnect
By using ConnectOpenSea()
or ConnectDappWithWalletConnect()
method of Face Wallet Unity SDK, you can launch a Modal/WebView that allows Face Wallet to be connected with OpenSea or other Dapp through WalletConnect.
Face face = new Face();
this.face.Initialize(FaceSetting);
...
public void ConnectWallet()
{
string address = {YOUR_WALLET_ADDRESS};
this.face.Wallet().ConnectOpenSea(address);
}
If you want to connect other Dapp, you can use ConnectDappWithWalletConnect()
method.
Face face = new Face();
this.face.Initialize(FaceSetting);
...
public void ConnectWallet()
{
string address = {YOUR_WALLET_ADDRESS};
string dappNeme = {NAME_FOR_WANT_TO_CONNECT}
string dappUrl = {URL_FOR_WANT_TO_CONNECT}
this.face.Wallet().ConnectDappWithWalletConnect(dappName, dappUrl, address);
}
Must choice Fast (smaller) Builds by IL2CPP Code Generation at Build
Updated about 1 year ago