Commit 1fa2bca6 authored by shujianhe's avatar shujianhe

mac无法创建目录问题

parent ecb7df4c
...@@ -75,6 +75,19 @@ public class utilsTools ...@@ -75,6 +75,19 @@ public class utilsTools
return isPhone == 1; return isPhone == 1;
} }
} }
public static bool IsWin
{
get
{
switch (Application.platform)
{
case RuntimePlatform.WindowsEditor:
case RuntimePlatform.WindowsPlayer:
return true;
default: return false;
}
}
}
public static Vector2 DisplaySize public static Vector2 DisplaySize
{ {
get get
...@@ -541,9 +554,17 @@ public class utilsTools ...@@ -541,9 +554,17 @@ public class utilsTools
public static void CreateDirectory(string path) public static void CreateDirectory(string path)
{ {
string path1 = getWritableByPath(path); string path1 = getWritableByPath(path);
if(Directory.Exists(path1.Replace("/","\\")) == false) if (IsWin)
{
path1 = path1.Replace("/", "\\");
}
else
{
path1 = path1.Replace("\\", "/");
}
if(Directory.Exists(path1) == false)
{ {
Directory.CreateDirectory(path1.Replace("/","\\")); Directory.CreateDirectory(path1);
} }
} }
public static float randValueByFloat(float min,float max) public static float randValueByFloat(float min,float max)
......
...@@ -5,6 +5,21 @@ EditorUserSettings: ...@@ -5,6 +5,21 @@ EditorUserSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 4 serializedVersion: 4
m_ConfigSettings: m_ConfigSettings:
RecentlyUsedSceneGuid-0:
value: 5b04565656070c025e0a547743270744174f4a73292c7f64782b4e62b1b1616a
flags: 0
RecentlyUsedSceneGuid-1:
value: 520650505353510d59560e7046775946454e4d2e7f7d76322c2b4562e7e66760
flags: 0
RecentlyUsedSceneGuid-2:
value: 5350045f5c07085d085b5a2013205a4444154f7a7e7e7f342e281866e1b7676e
flags: 0
RecentlyUsedSceneGuid-3:
value: 5452030553560f580b0f087415270f44444f417a7d2a76322f701e64e7e16d60
flags: 0
RecentlyUsedSceneGuid-4:
value: 0009045f50565e0b0b0d5c7a42270a44134f412e747a74647f7c4c61e1b7626e
flags: 0
vcSharedLogLevel: vcSharedLogLevel:
value: 0d5e400f0650 value: 0d5e400f0650
flags: 0 flags: 0
......
...@@ -15,9 +15,9 @@ MonoBehaviour: ...@@ -15,9 +15,9 @@ MonoBehaviour:
m_PixelRect: m_PixelRect:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 45 y: 43
width: 1440 width: 2560
height: 805 height: 1357
m_ShowMode: 4 m_ShowMode: 4
m_Title: Scene m_Title: Scene
m_RootView: {fileID: 9} m_RootView: {fileID: 9}
...@@ -40,9 +40,9 @@ MonoBehaviour: ...@@ -40,9 +40,9 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 503 y: 871
width: 942 width: 1675
height: 252 height: 436
m_MinSize: {x: 101, y: 121} m_MinSize: {x: 101, y: 121}
m_MaxSize: {x: 4001, y: 4021} m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 17} m_ActualView: {fileID: 17}
...@@ -69,12 +69,12 @@ MonoBehaviour: ...@@ -69,12 +69,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 942 width: 1675
height: 755 height: 1307
m_MinSize: {x: 100, y: 100} m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 8096, y: 16192} m_MaxSize: {x: 8096, y: 16192}
vertical: 1 vertical: 1
controlID: 320 controlID: 16
--- !u!114 &4 --- !u!114 &4
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
...@@ -91,9 +91,9 @@ MonoBehaviour: ...@@ -91,9 +91,9 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 325 y: 563
width: 241 width: 428
height: 430 height: 744
m_MinSize: {x: 232, y: 271} m_MinSize: {x: 232, y: 271}
m_MaxSize: {x: 10002, y: 10021} m_MaxSize: {x: 10002, y: 10021}
m_ActualView: {fileID: 13} m_ActualView: {fileID: 13}
...@@ -118,14 +118,14 @@ MonoBehaviour: ...@@ -118,14 +118,14 @@ MonoBehaviour:
- {fileID: 4} - {fileID: 4}
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 942 x: 1675
y: 0 y: 0
width: 241 width: 428
height: 755 height: 1307
m_MinSize: {x: 100, y: 100} m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 8096, y: 16192} m_MaxSize: {x: 8096, y: 16192}
vertical: 1 vertical: 1
controlID: 195 controlID: 83
--- !u!114 &6 --- !u!114 &6
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
...@@ -143,8 +143,8 @@ MonoBehaviour: ...@@ -143,8 +143,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 241 width: 428
height: 325 height: 563
m_MinSize: {x: 202, y: 221} m_MinSize: {x: 202, y: 221}
m_MaxSize: {x: 4002, y: 4021} m_MaxSize: {x: 4002, y: 4021}
m_ActualView: {fileID: 15} m_ActualView: {fileID: 15}
...@@ -172,12 +172,12 @@ MonoBehaviour: ...@@ -172,12 +172,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 30 y: 30
width: 1440 width: 2560
height: 755 height: 1307
m_MinSize: {x: 300, y: 100} m_MinSize: {x: 300, y: 100}
m_MaxSize: {x: 24288, y: 16192} m_MaxSize: {x: 24288, y: 16192}
vertical: 0 vertical: 0
controlID: 319 controlID: 15
--- !u!114 &8 --- !u!114 &8
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
...@@ -193,10 +193,10 @@ MonoBehaviour: ...@@ -193,10 +193,10 @@ MonoBehaviour:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 1183 x: 2103
y: 0 y: 0
width: 257 width: 457
height: 755 height: 1307
m_MinSize: {x: 276, y: 71} m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021} m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 14} m_ActualView: {fileID: 14}
...@@ -224,8 +224,8 @@ MonoBehaviour: ...@@ -224,8 +224,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1440 width: 2560
height: 805 height: 1357
m_MinSize: {x: 875, y: 300} m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
m_UseTopView: 1 m_UseTopView: 1
...@@ -249,7 +249,7 @@ MonoBehaviour: ...@@ -249,7 +249,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1440 width: 2560
height: 30 height: 30
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
...@@ -270,8 +270,8 @@ MonoBehaviour: ...@@ -270,8 +270,8 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 785 y: 1337
width: 1440 width: 2560
height: 20 height: 20
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
...@@ -292,8 +292,8 @@ MonoBehaviour: ...@@ -292,8 +292,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 942 width: 1675
height: 503 height: 871
m_MinSize: {x: 201, y: 221} m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021} m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 16} m_ActualView: {fileID: 16}
...@@ -318,14 +318,14 @@ MonoBehaviour: ...@@ -318,14 +318,14 @@ MonoBehaviour:
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
m_TitleContent: m_TitleContent:
m_Text: Project m_Text: Project
m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 942 x: 1675
y: 400 y: 636
width: 239 width: 426
height: 409 height: 723
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
...@@ -346,8 +346,7 @@ MonoBehaviour: ...@@ -346,8 +346,7 @@ MonoBehaviour:
m_ShowAllHits: 0 m_ShowAllHits: 0
m_SkipHidden: 0 m_SkipHidden: 0
m_SearchArea: 1 m_SearchArea: 1
m_Folders: m_Folders: []
- Assets/Scenes
m_Globs: [] m_Globs: []
m_OriginalText: m_OriginalText:
m_ImportLogFlags: 0 m_ImportLogFlags: 0
...@@ -356,14 +355,14 @@ MonoBehaviour: ...@@ -356,14 +355,14 @@ MonoBehaviour:
m_StartGridSize: 67 m_StartGridSize: 67
m_LastFolders: [] m_LastFolders: []
m_LastFoldersGridSize: 67 m_LastFoldersGridSize: 67
m_LastProjectPath: /Users/mangguo/Desktop/bianse/tusegamecolor m_LastProjectPath: E:\projectwork\game\tuse\tusegame
m_LockTracker: m_LockTracker:
m_IsLocked: 0 m_IsLocked: 0
m_FolderTreeState: m_FolderTreeState:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: f0660000 m_SelectedIDs: f0660000
m_LastClickedID: 26352 m_LastClickedID: 26352
m_ExpandedIDs: 000000009640000000ca9a3b m_ExpandedIDs: 0000000066620000686200006a6200006c6200006e6200007062000072620000
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
...@@ -391,21 +390,21 @@ MonoBehaviour: ...@@ -391,21 +390,21 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
m_LastClickedID: 0 m_LastClickedID: 0
m_ExpandedIDs: ffffffff0000000096400000e240000000ca9a3b m_ExpandedIDs: ffffffff0000000066620000686200006a6200006c6200006e6200007062000072620000
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: gameScene m_Name:
m_OriginalName: gameScene m_OriginalName:
m_EditFieldRect: m_EditFieldRect:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 0 width: 0
height: 0 height: 0
m_UserData: 43628 m_UserData: 0
m_IsWaitingForDelay: 0 m_IsWaitingForDelay: 0
m_IsRenaming: 0 m_IsRenaming: 0
m_OriginalEventType: 0 m_OriginalEventType: 11
m_IsRenamingFilename: 1 m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 4} m_ClientGUIView: {fileID: 4}
m_SearchString: m_SearchString:
...@@ -463,14 +462,14 @@ MonoBehaviour: ...@@ -463,14 +462,14 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_TitleContent: m_TitleContent:
m_Text: Inspector m_Text: Inspector
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 1183 x: 2103
y: 75 y: 73
width: 256 width: 456
height: 734 height: 1286
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
...@@ -510,14 +509,14 @@ MonoBehaviour: ...@@ -510,14 +509,14 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_TitleContent: m_TitleContent:
m_Text: Hierarchy m_Text: Hierarchy
m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 942 x: 1675
y: 75 y: 73
width: 239 width: 426
height: 304 height: 542
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
...@@ -533,21 +532,21 @@ MonoBehaviour: ...@@ -533,21 +532,21 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
m_LastClickedID: 0 m_LastClickedID: 0
m_ExpandedIDs: 6a0dfeffb80dfeff5410feffc010feff1e27feff7227feff522bfeffe0b10000deb600009cc4000028c60000eac6000090c70000 m_ExpandedIDs: 5af4ffff
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: bottom m_Name:
m_OriginalName: bottom m_OriginalName:
m_EditFieldRect: m_EditFieldRect:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 0 width: 0
height: 0 height: 0
m_UserData: 50728 m_UserData: 0
m_IsWaitingForDelay: 0 m_IsWaitingForDelay: 0
m_IsRenaming: 0 m_IsRenaming: 0
m_OriginalEventType: 0 m_OriginalEventType: 11
m_IsRenamingFilename: 0 m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 6} m_ClientGUIView: {fileID: 6}
m_SearchString: m_SearchString:
...@@ -573,14 +572,14 @@ MonoBehaviour: ...@@ -573,14 +572,14 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_TitleContent: m_TitleContent:
m_Text: Scene m_Text: Scene
m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 75 y: 73
width: 941 width: 1674
height: 482 height: 850
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
...@@ -926,9 +925,9 @@ MonoBehaviour: ...@@ -926,9 +925,9 @@ MonoBehaviour:
m_PlayAudio: 0 m_PlayAudio: 0
m_AudioPlay: 0 m_AudioPlay: 0
m_Position: m_Position:
m_Target: {x: 0, y: 0, z: 90} m_Target: {x: 466.76364, y: 491.18192, z: 89.97425}
speed: 2 speed: 2
m_Value: {x: -0.00024719842, y: -0.000011624188, z: 89.99998} m_Value: {x: 0, y: 0, z: 90}
m_RenderMode: 0 m_RenderMode: 0
m_CameraMode: m_CameraMode:
drawMode: 0 drawMode: 0
...@@ -978,9 +977,9 @@ MonoBehaviour: ...@@ -978,9 +977,9 @@ MonoBehaviour:
speed: 2 speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1} m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size: m_Size:
m_Target: 5.7360487 m_Target: 481.439
speed: 2 speed: 2
m_Value: 5.7363815 m_Value: 5.7360487
m_Ortho: m_Ortho:
m_Target: 1 m_Target: 1
speed: 2 speed: 2
...@@ -1021,14 +1020,14 @@ MonoBehaviour: ...@@ -1021,14 +1020,14 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_TitleContent: m_TitleContent:
m_Text: Console m_Text: Console
m_Image: {fileID: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 578 y: 944
width: 941 width: 1674
height: 231 height: 415
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
...@@ -1055,7 +1054,7 @@ MonoBehaviour: ...@@ -1055,7 +1054,7 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_TitleContent: m_TitleContent:
m_Text: Game m_Text: Game
m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0} m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0}
m_Tooltip: m_Tooltip:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
...@@ -1081,7 +1080,7 @@ MonoBehaviour: ...@@ -1081,7 +1080,7 @@ MonoBehaviour:
m_ShowGizmos: 0 m_ShowGizmos: 0
m_TargetDisplay: 0 m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0} m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 750, y: 1334} m_TargetSize: {x: 1080, y: 2160}
m_TextureFilterMode: 0 m_TextureFilterMode: 0
m_TextureHideFlags: 61 m_TextureHideFlags: 61
m_RenderIMGUI: 1 m_RenderIMGUI: 1
...@@ -1090,16 +1089,16 @@ MonoBehaviour: ...@@ -1090,16 +1089,16 @@ MonoBehaviour:
m_VSyncEnabled: 0 m_VSyncEnabled: 0
m_Gizmos: 0 m_Gizmos: 0
m_Stats: 0 m_Stats: 0
m_SelectedSizes: 08000000000000000000000007000000000000000000000000000000000000000000000000000000 m_SelectedSizes: 06000000000000000000000007000000000000000000000000000000000000000000000000000000
m_ZoomArea: m_ZoomArea:
m_HRangeLocked: 0 m_HRangeLocked: 0
m_VRangeLocked: 0 m_VRangeLocked: 0
hZoomLockedByDefault: 0 hZoomLockedByDefault: 0
vZoomLockedByDefault: 0 vZoomLockedByDefault: 0
m_HBaseRangeMin: -187.5 m_HBaseRangeMin: -540
m_HBaseRangeMax: 187.5 m_HBaseRangeMax: 540
m_VBaseRangeMin: -333.5 m_VBaseRangeMin: -1080
m_VBaseRangeMax: 333.5 m_VBaseRangeMax: 1080
m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1 m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1 m_VAllowExceedBaseRangeMin: 1
...@@ -1119,7 +1118,7 @@ MonoBehaviour: ...@@ -1119,7 +1118,7 @@ MonoBehaviour:
y: 21 y: 21
width: 941 width: 941
height: 461 height: 461
m_Scale: {x: 0.6911544, y: 0.6911544} m_Scale: {x: 0.21342592, y: 0.21342592}
m_Translation: {x: 470.5, y: 230.5} m_Translation: {x: 470.5, y: 230.5}
m_MarginLeft: 0 m_MarginLeft: 0
m_MarginRight: 0 m_MarginRight: 0
...@@ -1127,13 +1126,13 @@ MonoBehaviour: ...@@ -1127,13 +1126,13 @@ MonoBehaviour:
m_MarginBottom: 0 m_MarginBottom: 0
m_LastShownAreaInsideMargins: m_LastShownAreaInsideMargins:
serializedVersion: 2 serializedVersion: 2
x: -680.7451 x: -2204.512
y: -333.5 y: -1080
width: 1361.4902 width: 4409.024
height: 667 height: 2160
m_MinimalGUI: 1 m_MinimalGUI: 1
m_defaultScale: 0.6911544 m_defaultScale: 0.21342592
m_LastWindowPixelSize: {x: 1882, y: 964} m_LastWindowPixelSize: {x: 941, y: 482}
m_ClearInEditMode: 1 m_ClearInEditMode: 1
m_NoCameraWarning: 1 m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000 m_LowResolutionForAspectRatios: 01000000000000000000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment