-
Notifications
You must be signed in to change notification settings - Fork 245
Bug fixes and Improvements #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5c1df30
81d469a
fd36e15
80cd1fa
af996f5
8fca4ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| using System.IO; | ||
| using System.Linq; | ||
| using ChainSafe.Gaming.UnityPackage.Connection; | ||
| using UnityEditor; | ||
| using UnityEngine; | ||
|
|
||
| namespace ChainSafe.GamingSdk.Editor | ||
| { | ||
| /// <summary> | ||
| /// Make connection providers read-write by moving it from packages into Assets/Resources. | ||
| /// </summary> | ||
| [InitializeOnLoad] | ||
| public class ReadWriteProvider | ||
| { | ||
| static ReadWriteProvider() | ||
| { | ||
| TryMovingConnectionProviders(); | ||
| } | ||
|
|
||
| private static void TryMovingConnectionProviders() | ||
| { | ||
| var providers = Resources.LoadAll<ConnectionProvider>(string.Empty) | ||
| .Where(p => AssetDatabase.GetAssetPath(p).Contains("io.chainsafe.web3-unity")); | ||
|
|
||
| foreach (var provider in providers) | ||
| { | ||
| string source = AssetDatabase.GetAssetPath(provider); | ||
|
|
||
| string directory = Path.Combine(Application.dataPath, nameof(Resources)); | ||
|
|
||
| string destination = Path.Combine(directory, Path.GetFileName(source)); | ||
|
|
||
| if (!Directory.Exists(directory)) | ||
| { | ||
| Directory.CreateDirectory(directory); | ||
| } | ||
|
|
||
| File.Move(source, destination); | ||
| } | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!114 &11400000 | ||
| MonoBehaviour: | ||
| m_ObjectHideFlags: 0 | ||
| m_CorrespondingSourceObject: {fileID: 0} | ||
| m_PrefabInstance: {fileID: 0} | ||
| m_PrefabAsset: {fileID: 0} | ||
| m_GameObject: {fileID: 0} | ||
| m_Enabled: 1 | ||
| m_EditorHideFlags: 0 | ||
| m_Script: {fileID: 11500000, guid: 582efc0fde77aab43a77ee4237ba305a, type: 3} | ||
| m_Name: WalletConnectConnectionProvider | ||
| m_EditorClassIdentifier: | ||
| <Name>k__BackingField: WalletConnect | ||
| <ConnectButtonRow>k__BackingField: {fileID: 8599114313589093787, guid: 4591cfadb2bf9824da90ebf4005728a8, type: 3} | ||
| <RememberSession>k__BackingField: 1 | ||
| walletConnectConfig: {fileID: 11400000, guid: fde7db0e37b4a884da1149e9f1999093, type: 2} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!114 &11400000 | ||
| MonoBehaviour: | ||
| m_ObjectHideFlags: 0 | ||
| m_CorrespondingSourceObject: {fileID: 0} | ||
| m_PrefabInstance: {fileID: 0} | ||
| m_PrefabAsset: {fileID: 0} | ||
| m_GameObject: {fileID: 0} | ||
| m_Enabled: 1 | ||
| m_EditorHideFlags: 0 | ||
| m_Script: {fileID: 11500000, guid: 6b435f36106e244449abb70cf6f41008, type: 3} | ||
| m_Name: Web3AuthConnectionProvider | ||
| m_EditorClassIdentifier: | ||
| <Name>k__BackingField: Web3Auth | ||
| <ConnectButtonRow>k__BackingField: {fileID: 8599114313589093787, guid: 163bbaaeb51883442a20ea7532888a43, type: 3} | ||
| <RememberSession>k__BackingField: 1 | ||
| clientId: BDoIQpmwh4ow7oDMshLsPTj0JHGnS-0ZsB14fMzZ6CnxB0kMJf4o3oWvFWiISuL_p7PzyGx4v7iGHDQQF4lNL-s | ||
| redirectUri: torusapp://io.chainsafe.gamingsdk.sdkdemoscene/auth | ||
| network: 1 | ||
| modalPrefab: {fileID: 1060439634540712661, guid: 42c53f26848d1d54a9ffe18fae333758, type: 3} | ||
| enableWalletGui: 1 | ||
| web3AuthWalletGUIPrefab: {fileID: 7656622686525558909, guid: b394e6c49b9bd734089cea0293265bd3, type: 3} | ||
| walletGuiConfig: | ||
| DisplayWalletIcon: 1 | ||
| AutoPopUpWalletOnTx: 1 | ||
| AutoConfirmTransactions: 0 | ||
| WalletIcon: {fileID: 21300000, guid: 55a46a48cd53d834f99fda690cfea4b1, type: 3} | ||
| WalletLogo: {fileID: 21300000, guid: ab400fd9b39316240b30631965553264, type: 3} | ||
| DisplayFont: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} | ||
| PrimaryBackgroundColour: {r: 0, g: 0, b: 0, a: 0.7254902} | ||
| MenuBackgroundColour: {r: 0, g: 0, b: 0, a: 1} | ||
| PrimaryTextColour: {r: 1, g: 1, b: 1, a: 1} | ||
| SecondaryTextColour: {r: 0.42745098, g: 0.85882354, b: 0.29411766, a: 1} | ||
| BorderButtonColour: {r: 1, g: 1, b: 1, a: 1} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.