@@ -54,9 +54,9 @@ void OnGUI()
5454 GUILayout . Label ( "Project Setup" , EditorStyles . boldLabel ) ;
5555 GUILayout . Space ( 10 ) ;
5656
57- Checkbox ( "Create Folders" , ref createFolders ) ;
58- Checkbox ( "Update Packages" , ref updatePackages ) ;
59- Checkbox ( "Import Assets" , ref importAssets ) ;
57+ Checkbox ( "Create Folders" , "Common folders: Scripts, Scenes, Textures.." , ref createFolders ) ;
58+ Checkbox ( "Update Packages" , "Adds and removes packages from manifest.json" , ref updatePackages ) ;
59+ Checkbox ( "Import Assets" , "Imports selected assets from the list below" , ref importAssets ) ;
6060
6161 GUILayout . Space ( 10 ) ;
6262 if ( GUILayout . Button ( "Setup Project" , GUILayout . Height ( 64 ) ) )
@@ -185,7 +185,7 @@ static void SetupProject()
185185
186186 // TODO 2d/3d mode for editor?
187187
188- UpdatePackages ( ) ;
188+ if ( updatePackages == true ) UpdatePackages ( ) ;
189189 AssetDatabase . Refresh ( ) ;
190190 SaveSettingsAndImportAssets ( import : true ) ;
191191
@@ -256,7 +256,7 @@ private void OnDestroy()
256256 SaveSettingsAndImportAssets ( ) ;
257257 if ( importAssets == true )
258258 {
259- // have to enter playmode to fully import asset packages???
259+ // NOTE have to enter playmode to fully import asset packages???
260260 EditorApplication . EnterPlaymode ( ) ;
261261
262262 var stopperScript = Path . Combine ( assetsFolder , "Editor/StopPlaymode.cs" ) ;
@@ -350,7 +350,7 @@ static void SaveSettingsAndImportAssets(bool import = false)
350350 continue ;
351351 }
352352 Debug . Log ( "Importing: " + Path . GetFileName ( items [ i ] ) ) ;
353- AssetDatabase . ImportPackage ( items [ i ] , false ) ;
353+ if ( importAssets == true ) AssetDatabase . ImportPackage ( items [ i ] , false ) ;
354354 }
355355 }
356356 listOfAssets += items [ i ] + "|" ;
@@ -441,11 +441,13 @@ static void UpdatePackages()
441441 }
442442
443443 // toggle with clickable label text
444- static void Checkbox ( string label , ref bool value )
444+ static void Checkbox ( string label , string tooltip , ref bool value )
445445 {
446446 EditorGUILayout . BeginHorizontal ( ) ;
447447 //if (GUILayout.Button(label, EditorStyles.label)) value = !value;
448- value = EditorGUILayout . ToggleLeft ( label , value ) ;
448+ //value = EditorGUILayout.ToggleLeft(label, value);
449+ // show tooltip in toggle
450+ value = EditorGUILayout . Toggle ( new GUIContent ( label , tooltip ) , value ) ;
449451 EditorGUILayout . EndHorizontal ( ) ;
450452 }
451453
0 commit comments