File tree Expand file tree Collapse file tree
UI Toolkit/Components/Resources/SettingsOverlay Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,10 +12,8 @@ MonoBehaviour:
1212 m_Script : {fileID: 11500000, guid: 5e37f1d599a72b64eba3799d826c755b, type: 3}
1313 m_Name : Mixpanel
1414 m_EditorClassIdentifier :
15- ShowDebug : 1
15+ ShowDebug : 0
1616 ManualInitialization : 0
1717 APIHostAddress : https://api.mixpanel.com/
18- RuntimeToken :
19- DebugToken :
20- FlushInterval : 60
18+ FlushInterval : 10
2119 UseIpAddressForGeolocation : 1
Original file line number Diff line number Diff line change 1+ using mixpanel ;
12using Skibitsky . Unity ;
23using UnityEngine ;
34using UnityEngine . SceneManagement ;
@@ -14,6 +15,7 @@ public class AppInit : MonoBehaviour
1415 private void Start ( )
1516 {
1617 InitDebugConsole ( ) ;
18+ ConfigureMixpanel ( ) ;
1719 SceneManager . LoadScene ( _mainScene ) ;
1820 }
1921
@@ -24,5 +26,18 @@ private void InitDebugConsole()
2426 _debugConsole . SetActive ( true ) ;
2527#endif
2628 }
29+
30+ private void ConfigureMixpanel ( )
31+ {
32+ Application . logMessageReceived += ( logString , stackTrace , type ) =>
33+ {
34+ var props = new Value
35+ {
36+ [ "type" ] = type . ToString ( ) ,
37+ [ "scene" ] = SceneManager . GetActiveScene ( ) . name
38+ } ;
39+ Mixpanel . Track ( logString , props ) ;
40+ } ;
41+ }
2742 }
2843}
Original file line number Diff line number Diff line change 1- using System ;
1+ using mixpanel ;
22using Skibitsky . Unity ;
33using UnityEngine ;
44using UnityEngine . SceneManagement ;
@@ -8,12 +8,19 @@ namespace WalletConnect.Web3Modal.Sample
88 public class AppKitInit : MonoBehaviour
99 {
1010 [ SerializeField ] private SceneReference _menuScene ;
11-
11+
1212 private async void Start ( )
1313 {
1414 Debug . Log ( $ "[AppKit Init] Initializing AppKit...") ;
1515 await Web3Modal . InitializeAsync ( ) ;
1616
17+ var wc = WalletConnectConnector . WalletConnectInstance ;
18+ if ( wc is { IsInitialized : true } )
19+ {
20+ var clientId = await wc . SignClient . Core . Crypto . GetClientId ( ) ;
21+ Mixpanel . Identify ( clientId ) ;
22+ }
23+
1724 Debug . Log ( $ "[AppKit Init] AppKit initialized. Loading menu scene...") ;
1825 SceneManager . LoadScene ( _menuScene ) ;
1926 }
Original file line number Diff line number Diff line change 1111 width: 100%;
1212 max-width: 300px;
1313 flex-direction: column;
14- margin : 24 12 24 12px;
14+ padding : 24 12 24 12px;
1515 align-self: center;
1616}
1717
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
3- "com.mixpanel.unity " : " 3.5 .2" ,
3+ "com.bgtools.playerprefseditor " : " 1.2 .2" ,
44 "com.skibitsky.scene-reference" : " 1.1.1" ,
55 "com.unity.ide.rider" : " 3.0.31" ,
66 "com.unity.ide.visualstudio" : " 2.0.22" ,
4444 "com.unity.modules.video" : " 1.0.0" ,
4545 "com.unity.modules.vr" : " 1.0.0" ,
4646 "com.unity.modules.wind" : " 1.0.0" ,
47- "com.unity.modules.xr" : " 1.0.0"
47+ "com.unity.modules.xr" : " 1.0.0" ,
48+ "com.mixpanel.unity" : " 3.5.2"
4849 },
4950 "scopedRegistries" : [
5051 {
5152 "name" : " package.openupm.com" ,
5253 "url" : " https://package.openupm.com" ,
5354 "scopes" : [
55+ " com.bgtools.playerprefseditor" ,
5456 " com.mixpanel.unity" ,
5557 " com.nethereum.unity" ,
5658 " com.openupm" ,
6163 ]
6264 }
6365 ]
64- }
66+ }
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
3+ "com.bgtools.playerprefseditor" : {
4+ "version" : " 1.2.2" ,
5+ "depth" : 0 ,
6+ "source" : " registry" ,
7+ "dependencies" : {},
8+ "url" : " https://package.openupm.com"
9+ },
310 "com.mixpanel.unity" : {
411 "version" : " 3.5.2" ,
512 "depth" : 0 ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ MonoBehaviour:
3030 m_Name : package.openupm.com
3131 m_Url : https://package.openupm.com
3232 m_Scopes :
33+ - com.bgtools.playerprefseditor
3334 - com.mixpanel.unity
3435 - com.nethereum.unity
3536 - com.openupm
@@ -45,6 +46,6 @@ MonoBehaviour:
4546 m_RegistryInfoDraft :
4647 m_Modified : 0
4748 m_ErrorMessage :
48- m_UserModificationsInstanceId : -852
49- m_OriginalInstanceId : -856
49+ m_UserModificationsInstanceId : -834
50+ m_OriginalInstanceId : -838
5051 m_LoadAssets : 0
You can’t perform that action at this time.
0 commit comments