@@ -18,6 +18,7 @@ public static class SampleSetup
18
18
private const string CANCEL_BUTTON_TEXT = "Cancel" ;
19
19
20
20
private const string RPM_WEBGL_SCREEN_SHOWN_KEY = "rpm-webgl-screen-shown" ;
21
+ private const string TEMPLATE_PATH = "WebGLTemplates" ;
21
22
private const string FILE_NAME = "ReadyPlayerMe.Core.WebGLSample.asmdef" ;
22
23
private const string PLUGINS_FOLDER = "Plugins" ;
23
24
private const string WEBGL_HELPER_PATH = "WebGlHelper" ;
@@ -77,28 +78,30 @@ private static string GetSampleRootFolder()
77
78
}
78
79
79
80
private static void MoveFolder ( string sourcePath , string destinationPath )
80
- {
81
- // Extract the last part of the source path (e.g., "Plugin")
82
- string sourceDirectoryName = new DirectoryInfo ( sourcePath ) . Name ;
81
+ {
82
+ // Extract the last part of the source path (e.g., "Plugin")
83
+ var sourceDirectoryName = new DirectoryInfo ( sourcePath ) . Name ;
83
84
84
- // Append the source directory name to the destination path
85
- string newDestinationPath = Path . Combine ( destinationPath , sourceDirectoryName ) ;
85
+ // Append the source directory name to the destination path
86
+ var newDestinationPath = Path . Combine ( destinationPath , sourceDirectoryName ) ;
86
87
87
- // Check if the source directory exists
88
- if ( ! Directory . Exists ( sourcePath ) )
89
- {
90
- throw new DirectoryNotFoundException ( "Source directory does not exist or could not be found: " + sourcePath ) ;
91
- }
88
+ // Check if the source directory exists
89
+ if ( ! Directory . Exists ( sourcePath ) )
90
+ {
91
+ throw new DirectoryNotFoundException ( "Source directory does not exist or could not be found: " + sourcePath ) ;
92
+ }
92
93
93
- // If the destination directory doesn't exist, create it
94
- if ( ! Directory . Exists ( destinationPath ) )
95
- {
96
- Directory . CreateDirectory ( destinationPath ) ;
97
- }
94
+ // If the destination directory doesn't exist, create it
95
+ if ( ! Directory . Exists ( destinationPath ) )
96
+ {
97
+ Directory . CreateDirectory ( destinationPath ) ;
98
+ }
98
99
99
- // Move the entire source directory to the new destination
100
- Directory . Move ( sourcePath , newDestinationPath ) ;
101
- }
100
+ // Move the entire source directory to the new destination
101
+ Directory . Move ( sourcePath , newDestinationPath ) ;
102
+ SDKLogger . Log ( TAG , $ "Moved folder and contents from { sourcePath } to { newDestinationPath } ") ;
103
+ AssetDatabase . Refresh ( ) ;
104
+ }
102
105
103
106
private static void SetWebGLTemplate ( )
104
107
{
0 commit comments