Skip to content

Commit 2306353

Browse files
committed
ThirdwebManager Inspector GUI
1 parent 3c334eb commit 2306353

File tree

6 files changed

+553
-8
lines changed

6 files changed

+553
-8
lines changed

Assets/Thirdweb/Core/Scripts/ThirdwebManager.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ public ChainData(string identifier, string chainId, string rpcOverride)
1919

2020
public class ThirdwebManager : MonoBehaviour
2121
{
22-
[Header("REQUIRED SETTINGS")]
2322
[Tooltip("The chain to initialize the SDK with")]
2423
public string chain = "goerli";
2524

26-
[Header("CHAIN DATA")]
2725
[Tooltip("Support any chain by adding it to this list from the inspector")]
2826
public List<ChainData> supportedChains = new List<ChainData>()
2927
{
@@ -43,17 +41,21 @@ public class ThirdwebManager : MonoBehaviour
4341
new ChainData("binance-testnet", "97", null),
4442
};
4543

46-
[Header("APP METADATA")]
44+
[Tooltip("The name of your app")]
4745
public string appName = "Thirdweb Game";
46+
47+
[Tooltip("The description of your app")]
4848
public string appDescription = "Thirdweb Game Demo";
49+
50+
[Tooltip("Favicons for your app")]
4951
public string[] appIcons = new string[] { "https://thirdweb.com/favicon.ico" };
52+
53+
[Tooltip("The url of your app")]
5054
public string appUrl = "https://thirdweb.com";
5155

52-
[Header("STORAGE OPTIONS")]
5356
[Tooltip("IPFS Gateway Override")]
5457
public string storageIpfsGatewayUrl = "https://gateway.ipfscdn.io/ipfs/";
5558

56-
[Header("OZ DEFENDER OPTIONS")]
5759
[Tooltip("Autotask URL")]
5860
public string relayerUrl = null;
5961

@@ -66,11 +68,9 @@ public class ThirdwebManager : MonoBehaviour
6668
[Tooltip("Forwarder Version (Defaults to 0.0.1 if left empty)")]
6769
public string forwaderVersionOverride = null;
6870

69-
[Header("MAGIC LINK OPTIONS")]
7071
[Tooltip("Magic Link API Key (https://dashboard.magic.link)")]
7172
public string magicLinkApiKey = null;
7273

73-
[Header("SMART WALLET OPTIONS")]
7474
[Tooltip("Factory Contract Address")]
7575
public string factoryAddress;
7676

@@ -89,7 +89,6 @@ public class ThirdwebManager : MonoBehaviour
8989
[Tooltip("Optional - If you want to use a custom entry point, you can provide the contract address here")]
9090
public string entryPointAddress;
9191

92-
[Header("NATIVE PREFABS (DANGER ZONE)")]
9392
[Tooltip("Instantiates the WalletConnect SDK for Native platforms.")]
9493
public GameObject WalletConnectPrefab;
9594

Assets/Thirdweb/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)