Skip to content

Commit

Permalink
better info on using the SOs
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 11, 2024
1 parent 87046ad commit 26e0405
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/unity/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ As described in [The RPC protocol](../architecture/rpc), Tezos clients including
By default, the SDK sends requests to a public RPC node that uses the Ghostnet test network, where you can test transactions without spending real tez.
For more information about test networks, see [Using sandboxes and testnets](../developing/testnets).

If you need to change the RPC node that the SDK uses, such as if the default node is overloaded or if you are ready to send transactions to Mainnet, you can set the RPC node by creating an instance of the Tezos Configuration object and setting the node in the **Rpc Url Format** field, as in this picture:
If you need to change the RPC node that the SDK uses, such as if the default node is overloaded or if you are ready to send transactions to Mainnet, you can set the RPC node by creating an instance of the [TezosConfigSO scriptable object](./reference/TezosConfigSO) and setting the node in the **Rpc Url Format** field, as in this picture:

<img src="/img/unity/unity-ipfs-scene-config.png" alt="Adding the Pinata API key and the data provider to the TezosConfigSO object" style={{width: 300}} />

Then, drag this instance of the TezosConfigSO scriptable object to the Config field of the TezosManager prefab.

For more examples of how to work with the SDK, see [Tutorial scenes](./scenes).
4 changes: 4 additions & 0 deletions docs/unity/reference/DataProviderConfigSO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ last_update:
The DataProviderConfigSO scriptable object sets the indexer that the SDK uses to get information about Tezos, such as an account's token balances.
Some Tezos dApps use a custom indexer to provide specific information that they need.

To use this object, create an instance of it, put your information in its fields, and then drag this instance to the Data Provider Config field of the [TezosConfigSO scriptable object](./TezosConfigSO) object, as in this picture:

<img src="/img/unity/unity-ipfs-scene-config.png" alt="Adding the Pinata API key and the data provider to the TezosConfigSO object" style={{width: 300}} />

## Properties

- `Script`: The attached script that implements the object
Expand Down
4 changes: 4 additions & 0 deletions docs/unity/reference/TezosConfigSO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ last_update:

The TezosConfigSO scriptable object sets the RPC node that the SDK sends Tezos transactions to.

To use this object, create an instance of it, put your information in its fields, and then drag this instance of the TezosConfigSO scriptable object to the Config field of the TezosManager prefab.

<img src="/img/unity/unity-ipfs-scene-config.png" alt="Adding the Pinata API key and the data provider to the TezosConfigSO object" style={{width: 300}} />

## Properties

- `Script`: The attached script that implements the object
Expand Down

0 comments on commit 26e0405

Please sign in to comment.