Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Unity 4.15.2 Docs (#454)
Browse files Browse the repository at this point in the history
Unity Rabby
  • Loading branch information
0xFirekeeper authored Jun 6, 2024
1 parent 87f7488 commit 2ee0581
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/app/unity/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ const walletProviders: SidebarLink = (() => {
name: "HyperPlay",
href: `${parentSlug}/hyperplay`,
},
{
name: "Rabby",
href: `${parentSlug}/rabby`,
}
],
};
})();
Expand Down
1 change: 1 addition & 0 deletions src/app/unity/wallets/actions/connect/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Available providers:
- `WalletProvider.SmartWallet`: [Smart Wallet](/unity/wallets/providers/account-abstraction)
- `WalletProvider.Hyperplay`: [Hyperplay](/unity/wallets/providers/hyperplay)
- `WalletProvider.InAppWallet`: [In-App Wallet](/unity/wallets/providers/in-app-wallet)
- `WalletProvider.Rabby`: [Rabby](/unity/wallets/providers/rabby)

#### chainId

Expand Down
6 changes: 3 additions & 3 deletions src/app/unity/wallets/providers/local-wallet/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public async void ConnectWallet()

### WebGL

Prompts the user to connect their Metamask browser extension.
Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage.

### Standalone

Instantiates the customizable `WalletProvider_Metamask` UI prefab, displaying a QR code and deep link button. Scan the QR code with your Metamask mobile app to connect.
Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage.

### Mobile

Instantiates the customizable `WalletProvider_Metamask` UI prefab, displaying a QR code and deep link button. Click the deep link button to connect to your Metamask mobile app.
Automatically creates or loads a local wallet on the user's device. The wallet is encrypted with a password and stored in local storage.

## Miscellaneous

Expand Down
45 changes: 45 additions & 0 deletions src/app/unity/wallets/providers/rabby/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { createMetadata } from "@doc";

export const metadata = createMetadata({
title: "Rabby Wallet | thirdweb Unity SDK",
description: "Connect to Rabby Wallet with thirdweb Unity SDK",
});

# Rabby

Prompt users to connect to your app with their [Rabby](https://rabby.io/) wallet.

## Usage

```csharp
using Thirdweb;

public async void ConnectWallet()
{
// Reference to your Thirdweb SDK
var sdk = ThirdwebManager.Instance.SDK;

// Configure the connection
var connection = new WalletConnection(
provider: WalletProvider.Rabby, // The wallet provider you want to connect to (Required)
chainId: 1 // The chain you want to connect to (Required)
);

// Connect the wallet
string address = await sdk.Wallet.Connect(connection);
}
```

## Behavior

### WebGL

Connects to the Rabby Browser Extension, defaults to WalletConnect otherwise.

### Standalone

Not applicable, please use the WalletConnect provider instead which includes Rabby support.

### Mobile

Not supported. Please use the WalletConnect provider instead which includes Rabby support.

0 comments on commit 2ee0581

Please sign in to comment.