@@ -116,7 +116,7 @@ public static void EditorPrefGetKey()
116
116
Dictionary < string , string > prefss = Prefs . Prefs . GetPrefsString ( type ) ;
117
117
118
118
CompletingRead ( "Get EditorPref key: " , prefss , ( key , _ ) =>
119
- {
119
+ {
120
120
key . CopyToClipboard ( ) ;
121
121
UnityEngine . Debug . Log ( "Copied EditorPref key: " + key ) ;
122
122
} ) ;
@@ -130,7 +130,7 @@ public static void PlayerPrefGetKey()
130
130
Dictionary < string , string > prefss = Prefs . Prefs . GetPrefsString ( type ) ;
131
131
132
132
CompletingRead ( "Get PlayerPref key: " , prefss , ( key , _ ) =>
133
- {
133
+ {
134
134
key . CopyToClipboard ( ) ;
135
135
UnityEngine . Debug . Log ( "Copied PlayerPref key: " + key ) ;
136
136
} ) ;
@@ -192,7 +192,7 @@ public static void EditorPrefSetKey()
192
192
}
193
193
194
194
CreatePref ( type , key ) ;
195
- } ,
195
+ } ,
196
196
requiredMatch : false ) ;
197
197
}
198
198
@@ -262,5 +262,30 @@ public static void PlayerPrefDeleteAll()
262
262
if ( yes == "Yes" ) Prefs . Prefs . DeleteAll ( type ) ;
263
263
} ) ;
264
264
}
265
+
266
+ [ Interactive (
267
+ icon : "AssemblyLock" ,
268
+ summary : "Prevents loading of assemblies when it is inconvenient." ) ]
269
+ public static void LockReloadAssemblies ( )
270
+ {
271
+ EditorApplication . LockReloadAssemblies ( ) ;
272
+ }
273
+
274
+ [ Interactive (
275
+ icon : "Assembly Icon" ,
276
+ summary : "Must be called after LockReloadAssemblies, to reenable loading of assemblies." ) ]
277
+ public static void UnlockReloadAssemblies ( )
278
+ {
279
+ EditorApplication . UnlockReloadAssemblies ( ) ;
280
+ EditorUtility . RequestScriptReload ( ) ;
281
+ }
282
+
283
+ [ Interactive (
284
+ icon : "cs Script Icon" ,
285
+ summary : "The Unity Editor reloads script assemblies asynchronously on the next frame." ) ]
286
+ public static void RequestScriptReload ( )
287
+ {
288
+ EditorUtility . RequestScriptReload ( ) ;
289
+ }
265
290
}
266
291
}
0 commit comments