File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Assets/MRTK/Tools/ReserializeAssetsUtility Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,17 @@ public class ReserializeUtility
19
19
[ MenuItem ( "Mixed Reality/Toolkit/Utilities/Reserialize/Prefabs, Scenes, and ScriptableObjects" ) ]
20
20
private static void ReserializePrefabsAndScenes ( )
21
21
{
22
- var array = GetAssets ( "t:Prefab t:Scene t:ScriptableObject" ) ;
22
+ string [ ] array = GetAssets ( "t:Prefab t:Scene t:ScriptableObject" ) ;
23
23
AssetDatabase . ForceReserializeAssets ( array ) ;
24
+ Debug . Log ( $ "Reserialized { array . Length } assets.") ;
24
25
}
25
26
26
27
[ MenuItem ( "Mixed Reality/Toolkit/Utilities/Reserialize/Materials and Textures" ) ]
27
28
private static void ReserializeMaterials ( )
28
29
{
29
- var array = GetAssets ( "t:Material t:Texture" ) ;
30
+ string [ ] array = GetAssets ( "t:Material t:Texture" ) ;
30
31
AssetDatabase . ForceReserializeAssets ( array ) ;
32
+ Debug . Log ( $ "Reserialized { array . Length } assets.") ;
31
33
}
32
34
33
35
[ MenuItem ( "Mixed Reality/Toolkit/Utilities/Reserialize/Reserialize Selection" ) ]
@@ -45,7 +47,7 @@ public static void ReserializeSelection()
45
47
46
48
string [ ] array = assetsPath . ToArray ( ) ;
47
49
AssetDatabase . ForceReserializeAssets ( array ) ;
48
- Debug . Log ( $ "Reserialized { assetsPath . Count } assets.") ;
50
+ Debug . Log ( $ "Reserialized { array . Length } assets.") ;
49
51
}
50
52
51
53
private static string [ ] GetAssets ( string filter )
You can’t perform that action at this time.
0 commit comments