File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Packages/Sequence-Unity/Editor Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 55using UnityEngine ;
66using System . Linq ;
77using Sequence . Config ;
8+ using System . IO ;
89
910namespace Sequence . Editor
1011{
@@ -28,11 +29,8 @@ public void OnPreprocessBuild(BuildReport report)
2829 BuildTarget target = report . summary . platform ;
2930 SequenceConfig config = SequenceConfig . GetConfig ( ) ;
3031
31- string [ ] matchingAssets = AssetDatabase . FindAssets ( SecureStoragePluginFilename ) ;
32-
33- string pluginPath = matchingAssets
34- . Select ( guid => AssetDatabase . GUIDToAssetPath ( guid ) )
35- . FirstOrDefault ( path => path . EndsWith ( SecureStoragePluginFilename ) ) ;
32+ string [ ] files = Directory . GetFiles ( "Assets" , SecureStoragePluginFilename , SearchOption . AllDirectories ) ;
33+ string pluginPath = files . FirstOrDefault ( ) ;
3634 if ( string . IsNullOrEmpty ( pluginPath ) )
3735 {
3836 if ( config . StoreSessionPrivateKeyInSecureStorage )
You can’t perform that action at this time.
0 commit comments