File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ public class EOLConversion : UnityEditor.AssetModificationProcessor
17
17
private static void ConvertToWindows ( )
18
18
{
19
19
EditorPrefs . SetString ( PREFS_PREFERED , "\r \n " ) ;
20
+ #if UNITY_2018_1_OR_NEWER
21
+ EditorSettings . lineEndingsForNewScripts = LineEndingsMode . Windows ;
22
+ #endif
20
23
Convert ( "\r \n " ) ;
21
24
}
22
25
@@ -25,6 +28,9 @@ private static void ConvertToWindows()
25
28
private static void ConvertToUnix ( )
26
29
{
27
30
EditorPrefs . SetString ( PREFS_PREFERED , "\n " ) ;
31
+ #if UNITY_2018_1_OR_NEWER
32
+ EditorSettings . lineEndingsForNewScripts = LineEndingsMode . Unix ;
33
+ #endif
28
34
Convert ( "\n " ) ;
29
35
}
30
36
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.lachee.utilities" ,
3
- "version" : " 1.4.6 " ,
3
+ "version" : " 1.4.7 " ,
4
4
"displayName" : " Lachee's Utilities" ,
5
5
"description" : " Bunch of utility functionality" ,
6
6
"unity" : " 2019.1" ,
You can’t perform that action at this time.
0 commit comments