From f4e949d76f76836ff755e01060c4de50414c0112 Mon Sep 17 00:00:00 2001 From: Hazim Bin Ijaz Date: Wed, 21 May 2025 15:40:07 +0500 Subject: [PATCH] Now signing in with meta mask --- .idea/.idea.ChainsafeDemo/.idea/.gitignore | 13 ++ .idea/.idea.ChainsafeDemo/.idea/encodings.xml | 4 + .../Web3AuthConnectionProvider.asset | 6 +- .../Scenes/SampleMain.unity | 16 +++ ProjectSettings/ProjectSettings.asset | 4 +- ProjectSettings/SceneTemplateSettings.json | 121 ++++++++++++++++++ 6 files changed, 159 insertions(+), 5 deletions(-) create mode 100644 .idea/.idea.ChainsafeDemo/.idea/.gitignore create mode 100644 .idea/.idea.ChainsafeDemo/.idea/encodings.xml create mode 100644 ProjectSettings/SceneTemplateSettings.json diff --git a/.idea/.idea.ChainsafeDemo/.idea/.gitignore b/.idea/.idea.ChainsafeDemo/.idea/.gitignore new file mode 100644 index 0000000..31221b4 --- /dev/null +++ b/.idea/.idea.ChainsafeDemo/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/contentModel.xml +/projectSettingsUpdater.xml +/.idea.ChainsafeDemo.iml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.ChainsafeDemo/.idea/encodings.xml b/.idea/.idea.ChainsafeDemo/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.ChainsafeDemo/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Assets/Resources/Web3AuthConnectionProvider.asset b/Assets/Resources/Web3AuthConnectionProvider.asset index 079564e..247d8da 100644 --- a/Assets/Resources/Web3AuthConnectionProvider.asset +++ b/Assets/Resources/Web3AuthConnectionProvider.asset @@ -12,13 +12,13 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6b435f36106e244449abb70cf6f41008, type: 3} m_Name: Web3AuthConnectionProvider m_EditorClassIdentifier: - k__BackingField: {fileID: 0} + k__BackingField: {fileID: 8599114313589093787, guid: 163bbaaeb51883442a20ea7532888a43, type: 3} clientId: redirectUri: network: 0 - modalPrefab: {fileID: 0} + modalPrefab: {fileID: 1060439634540712661, guid: 42c53f26848d1d54a9ffe18fae333758, type: 3} enableWalletGui: 0 - web3AuthWalletGUIPrefab: {fileID: 0} + web3AuthWalletGUIPrefab: {fileID: 7656622686525558909, guid: b394e6c49b9bd734089cea0293265bd3, type: 3} walletGuiConfig: DisplayWalletIcon: 1 AutoPopUpWalletOnTx: 1 diff --git a/Assets/Samples/web3.unity SDK/3.0.6/Web3.Unity Samples/Scenes/SampleMain.unity b/Assets/Samples/web3.unity SDK/3.0.6/Web3.Unity Samples/Scenes/SampleMain.unity index 3bbc389..a31bde4 100644 --- a/Assets/Samples/web3.unity SDK/3.0.6/Web3.Unity Samples/Scenes/SampleMain.unity +++ b/Assets/Samples/web3.unity SDK/3.0.6/Web3.Unity Samples/Scenes/SampleMain.unity @@ -1023,6 +1023,22 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 5008553068369276269, guid: 6d183a51c0030794a8ff3fea5dbd6423, type: 3} + propertyPath: providers.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5008553068369276269, guid: 6d183a51c0030794a8ff3fea5dbd6423, type: 3} + propertyPath: providers.Array.data[0] + value: + objectReference: {fileID: 11400000, guid: 8990438bc08817b48bc0ed4d49e8c0d5, type: 2} + - target: {fileID: 5008553068369276269, guid: 6d183a51c0030794a8ff3fea5dbd6423, type: 3} + propertyPath: providers.Array.data[1] + value: + objectReference: {fileID: 11400000, guid: e56cb66917f860e489d3ed4480b4681c, type: 2} + - target: {fileID: 5008553068369276269, guid: 6d183a51c0030794a8ff3fea5dbd6423, type: 3} + propertyPath: providers.Array.data[2] + value: + objectReference: {fileID: 11400000, guid: e56cb66917f860e489d3ed4480b4681c, type: 2} - target: {fileID: 8519303782652390544, guid: 6d183a51c0030794a8ff3fea5dbd6423, type: 3} propertyPath: m_LocalPosition.x value: 0 diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 5b6aa70..b05e861 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -822,7 +822,7 @@ PlayerSettings: webGLModulesDirectory: webGLTemplate: PROJECT:Web3.Unity webGLAnalyzeBuildSize: 0 - webGLUseEmbeddedResources: 0 + webGLUseEmbeddedResources: 1 webGLCompressionFormat: 1 webGLWasmArithmeticExceptions: 0 webGLLinkerTarget: 1 @@ -852,7 +852,7 @@ PlayerSettings: QNX: 1 Stadia: 1 VisionOS: 1 - WebGL: 1 + WebGL: 4 Windows Store Apps: 1 XboxOne: 1 iPhone: 1 diff --git a/ProjectSettings/SceneTemplateSettings.json b/ProjectSettings/SceneTemplateSettings.json new file mode 100644 index 0000000..5e97f83 --- /dev/null +++ b/ProjectSettings/SceneTemplateSettings.json @@ -0,0 +1,121 @@ +{ + "templatePinStates": [], + "dependencyTypeInfos": [ + { + "userAdded": false, + "type": "UnityEngine.AnimationClip", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Animations.AnimatorController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.AnimatorOverrideController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.Audio.AudioMixerController", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.ComputeShader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Cubemap", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.GameObject", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.LightingDataAsset", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.LightingSettings", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Material", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.MonoScript", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicMaterial", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicsMaterial2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.VolumeProfile", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEditor.SceneAsset", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Shader", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.ShaderVariantCollection", + "defaultInstantiationMode": 1 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Texture2D", + "defaultInstantiationMode": 0 + }, + { + "userAdded": false, + "type": "UnityEngine.Timeline.TimelineAsset", + "defaultInstantiationMode": 0 + } + ], + "defaultDependencyTypeInfo": { + "userAdded": false, + "type": "", + "defaultInstantiationMode": 1 + }, + "newSceneOverride": 0 +} \ No newline at end of file