Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
1fa2bca6
Commit
1fa2bca6
authored
Jul 10, 2023
by
shujianhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac无法创建目录问题
parent
ecb7df4c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
88 deletions
+123
-88
utilsTools.cs
Assets/scripts/utils/utilsTools.cs
+23
-2
EditorUserSettings.asset
UserSettings/EditorUserSettings.asset
+15
-0
default-2022.dwlt
UserSettings/Layouts/default-2022.dwlt
+85
-86
No files found.
Assets/scripts/utils/utilsTools.cs
View file @
1fa2bca6
...
...
@@ -75,6 +75,19 @@ public class utilsTools
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
{
get
...
...
@@ -541,9 +554,17 @@ public class utilsTools
public
static
void
CreateDirectory
(
string
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
)
...
...
UserSettings/EditorUserSettings.asset
View file @
1fa2bca6
...
...
@@ -5,6 +5,21 @@ EditorUserSettings:
m_ObjectHideFlags
:
0
serializedVersion
:
4
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
:
value
:
0d5e400f0650
flags
:
0
...
...
UserSettings/Layouts/default-2022.dwlt
View file @
1fa2bca6
...
...
@@ -15,9 +15,9 @@ MonoBehaviour:
m_PixelRect
:
serializedVersion
:
2
x
:
0
y
:
4
5
width
:
144
0
height
:
805
y
:
4
3
width
:
256
0
height
:
1357
m_ShowMode
:
4
m_Title
:
Scene
m_RootView
:
{
fileID
:
9
}
...
...
@@ -40,9 +40,9 @@ MonoBehaviour:
m_Position
:
serializedVersion
:
2
x
:
0
y
:
503
width
:
942
height
:
252
y
:
871
width
:
1675
height
:
436
m_MinSize
:
{
x
:
101
,
y
:
121
}
m_MaxSize
:
{
x
:
4001
,
y
:
4021
}
m_ActualView
:
{
fileID
:
17
}
...
...
@@ -69,12 +69,12 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
942
height
:
755
width
:
1675
height
:
1307
m_MinSize
:
{
x
:
100
,
y
:
100
}
m_MaxSize
:
{
x
:
8096
,
y
:
16192
}
vertical
:
1
controlID
:
320
controlID
:
16
---
!u!114
&4
MonoBehaviour
:
m_ObjectHideFlags
:
52
...
...
@@ -91,9 +91,9 @@ MonoBehaviour:
m_Position
:
serializedVersion
:
2
x
:
0
y
:
325
width
:
241
height
:
430
y
:
563
width
:
428
height
:
744
m_MinSize
:
{
x
:
232
,
y
:
271
}
m_MaxSize
:
{
x
:
10002
,
y
:
10021
}
m_ActualView
:
{
fileID
:
13
}
...
...
@@ -118,14 +118,14 @@ MonoBehaviour:
-
{
fileID
:
4
}
m_Position
:
serializedVersion
:
2
x
:
942
x
:
1675
y
:
0
width
:
241
height
:
755
width
:
428
height
:
1307
m_MinSize
:
{
x
:
100
,
y
:
100
}
m_MaxSize
:
{
x
:
8096
,
y
:
16192
}
vertical
:
1
controlID
:
195
controlID
:
83
---
!u!114
&6
MonoBehaviour
:
m_ObjectHideFlags
:
52
...
...
@@ -143,8 +143,8 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
241
height
:
325
width
:
428
height
:
563
m_MinSize
:
{
x
:
202
,
y
:
221
}
m_MaxSize
:
{
x
:
4002
,
y
:
4021
}
m_ActualView
:
{
fileID
:
15
}
...
...
@@ -172,12 +172,12 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
30
width
:
144
0
height
:
755
width
:
256
0
height
:
1307
m_MinSize
:
{
x
:
300
,
y
:
100
}
m_MaxSize
:
{
x
:
24288
,
y
:
16192
}
vertical
:
0
controlID
:
319
controlID
:
15
---
!u!114
&8
MonoBehaviour
:
m_ObjectHideFlags
:
52
...
...
@@ -193,10 +193,10 @@ MonoBehaviour:
m_Children
:
[]
m_Position
:
serializedVersion
:
2
x
:
118
3
x
:
210
3
y
:
0
width
:
2
57
height
:
755
width
:
4
57
height
:
1307
m_MinSize
:
{
x
:
276
,
y
:
71
}
m_MaxSize
:
{
x
:
4001
,
y
:
4021
}
m_ActualView
:
{
fileID
:
14
}
...
...
@@ -224,8 +224,8 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
144
0
height
:
805
width
:
256
0
height
:
1357
m_MinSize
:
{
x
:
875
,
y
:
300
}
m_MaxSize
:
{
x
:
10000
,
y
:
10000
}
m_UseTopView
:
1
...
...
@@ -249,7 +249,7 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
144
0
width
:
256
0
height
:
30
m_MinSize
:
{
x
:
0
,
y
:
0
}
m_MaxSize
:
{
x
:
0
,
y
:
0
}
...
...
@@ -270,8 +270,8 @@ MonoBehaviour:
m_Position
:
serializedVersion
:
2
x
:
0
y
:
785
width
:
144
0
y
:
1337
width
:
256
0
height
:
20
m_MinSize
:
{
x
:
0
,
y
:
0
}
m_MaxSize
:
{
x
:
0
,
y
:
0
}
...
...
@@ -292,8 +292,8 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
942
height
:
503
width
:
1675
height
:
871
m_MinSize
:
{
x
:
201
,
y
:
221
}
m_MaxSize
:
{
x
:
4001
,
y
:
4021
}
m_ActualView
:
{
fileID
:
16
}
...
...
@@ -318,14 +318,14 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
10000
,
y
:
10000
}
m_TitleContent
:
m_Text
:
Project
m_Image
:
{
fileID
:
-5
179483145760003458
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
-5
467254957812901981
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
942
y
:
400
width
:
239
height
:
409
x
:
1675
y
:
636
width
:
426
height
:
723
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -346,8 +346,7 @@ MonoBehaviour:
m_ShowAllHits
:
0
m_SkipHidden
:
0
m_SearchArea
:
1
m_Folders
:
-
Assets/Scenes
m_Folders
:
[]
m_Globs
:
[]
m_OriginalText
:
m_ImportLogFlags
:
0
...
...
@@ -356,14 +355,14 @@ MonoBehaviour:
m_StartGridSize
:
67
m_LastFolders
:
[]
m_LastFoldersGridSize
:
67
m_LastProjectPath
:
/Users/mangguo/Desktop/bianse/tusegamecolor
m_LastProjectPath
:
E:\projectwork\game\tuse\tusegame
m_LockTracker
:
m_IsLocked
:
0
m_FolderTreeState
:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
f0660000
m_LastClickedID
:
26352
m_ExpandedIDs
:
00000000
9640000000ca9a3b
m_ExpandedIDs
:
00000000
66620000686200006a6200006c6200006e6200007062000072620000
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
...
...
@@ -391,21 +390,21 @@ MonoBehaviour:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
m_LastClickedID
:
0
m_ExpandedIDs
:
ffffffff00000000
96400000e240000000ca9a3b
m_ExpandedIDs
:
ffffffff00000000
66620000686200006a6200006c6200006e6200007062000072620000
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
gameScene
m_OriginalName
:
gameScene
m_Name
:
m_OriginalName
:
m_EditFieldRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
0
height
:
0
m_UserData
:
43628
m_UserData
:
0
m_IsWaitingForDelay
:
0
m_IsRenaming
:
0
m_OriginalEventType
:
0
m_OriginalEventType
:
11
m_IsRenamingFilename
:
1
m_ClientGUIView
:
{
fileID
:
4
}
m_SearchString
:
...
...
@@ -463,14 +462,14 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
4000
,
y
:
4000
}
m_TitleContent
:
m_Text
:
Inspector
m_Image
:
{
fileID
:
-
440750813802333266
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
-
2667387946076563598
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
118
3
y
:
7
5
width
:
2
56
height
:
734
x
:
210
3
y
:
7
3
width
:
4
56
height
:
1286
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -510,14 +509,14 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
4000
,
y
:
4000
}
m_TitleContent
:
m_Text
:
Hierarchy
m_Image
:
{
fileID
:
-373474523527515585
7
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
796613314552201524
7
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
942
y
:
7
5
width
:
239
height
:
304
x
:
1675
y
:
7
3
width
:
426
height
:
542
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -533,21 +532,21 @@ MonoBehaviour:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
m_LastClickedID
:
0
m_ExpandedIDs
:
6a0dfeffb80dfeff5410feffc010feff1e27feff7227feff522bfeffe0b10000deb600009cc4000028c60000eac6000090c70000
m_ExpandedIDs
:
5af4ffff
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
bottom
m_OriginalName
:
bottom
m_Name
:
m_OriginalName
:
m_EditFieldRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
0
height
:
0
m_UserData
:
50728
m_UserData
:
0
m_IsWaitingForDelay
:
0
m_IsRenaming
:
0
m_OriginalEventType
:
0
m_OriginalEventType
:
11
m_IsRenamingFilename
:
0
m_ClientGUIView
:
{
fileID
:
6
}
m_SearchString
:
...
...
@@ -573,14 +572,14 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
4000
,
y
:
4000
}
m_TitleContent
:
m_Text
:
Scene
m_Image
:
{
fileID
:
8634526014445323508
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
2593428753322112591
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
0
y
:
7
5
width
:
941
height
:
482
y
:
7
3
width
:
1674
height
:
850
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -926,9 +925,9 @@ MonoBehaviour:
m_PlayAudio
:
0
m_AudioPlay
:
0
m_Position
:
m_Target
:
{
x
:
0
,
y
:
0
,
z
:
90
}
m_Target
:
{
x
:
466.76364
,
y
:
491.18192
,
z
:
89.97425
}
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_CameraMode
:
drawMode
:
0
...
...
@@ -978,9 +977,9 @@ MonoBehaviour:
speed
:
2
m_Value
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_Size
:
m_Target
:
5.7360487
m_Target
:
481.439
speed
:
2
m_Value
:
5.736
3815
m_Value
:
5.736
0487
m_Ortho
:
m_Target
:
1
speed
:
2
...
...
@@ -1021,14 +1020,14 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
4000
,
y
:
4000
}
m_TitleContent
:
m_Text
:
Console
m_Image
:
{
fileID
:
-4
950941429401207979
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
-4
327648978806127646
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
0
y
:
578
width
:
941
height
:
231
y
:
944
width
:
1674
height
:
415
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -1055,7 +1054,7 @@ MonoBehaviour:
m_MaxSize
:
{
x
:
4000
,
y
:
4000
}
m_TitleContent
:
m_Text
:
Game
m_Image
:
{
fileID
:
4621777727084837110
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Image
:
{
fileID
:
-6423792434712278376
,
guid
:
0000000000000000d000000000000000
,
type
:
0
}
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
...
...
@@ -1081,7 +1080,7 @@ MonoBehaviour:
m_ShowGizmos
:
0
m_TargetDisplay
:
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_TextureHideFlags
:
61
m_RenderIMGUI
:
1
...
...
@@ -1090,16 +1089,16 @@ MonoBehaviour:
m_VSyncEnabled
:
0
m_Gizmos
:
0
m_Stats
:
0
m_SelectedSizes
:
0
8
000000000000000000000007000000000000000000000000000000000000000000000000000000
m_SelectedSizes
:
0
6
000000000000000000000007000000000000000000000000000000000000000000000000000000
m_ZoomArea
:
m_HRangeLocked
:
0
m_VRangeLocked
:
0
hZoomLockedByDefault
:
0
vZoomLockedByDefault
:
0
m_HBaseRangeMin
:
-
187.5
m_HBaseRangeMax
:
187.5
m_VBaseRangeMin
:
-
333.5
m_VBaseRangeMax
:
333.5
m_HBaseRangeMin
:
-
540
m_HBaseRangeMax
:
540
m_VBaseRangeMin
:
-
1080
m_VBaseRangeMax
:
1080
m_HAllowExceedBaseRangeMin
:
1
m_HAllowExceedBaseRangeMax
:
1
m_VAllowExceedBaseRangeMin
:
1
...
...
@@ -1119,7 +1118,7 @@ MonoBehaviour:
y
:
21
width
:
941
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_MarginLeft
:
0
m_MarginRight
:
0
...
...
@@ -1127,13 +1126,13 @@ MonoBehaviour:
m_MarginBottom
:
0
m_LastShownAreaInsideMargins
:
serializedVersion
:
2
x
:
-
680.7451
y
:
-
333.5
width
:
1361.4902
height
:
667
x
:
-
2204.512
y
:
-
1080
width
:
4409.024
height
:
2160
m_MinimalGUI
:
1
m_defaultScale
:
0.
6911544
m_LastWindowPixelSize
:
{
x
:
1882
,
y
:
964
}
m_defaultScale
:
0.
21342592
m_LastWindowPixelSize
:
{
x
:
941
,
y
:
482
}
m_ClearInEditMode
:
1
m_NoCameraWarning
:
1
m_LowResolutionForAspectRatios
:
01000000000000000000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment