Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tommé Nöll
seedling
Commits
9747f799
Commit
9747f799
authored
Jul 28, 2019
by
Tommé Nöll
Browse files
fixed script blocking prefab creation
parent
dd7191c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Assets/Editor/NotifyForLockedFiles.cs
View file @
9747f799
...
...
@@ -32,7 +32,7 @@ public class NotifyForLockedFiles : UnityEditor.AssetModificationProcessor
for
(
int
i
=
0
;
i
<
paths
.
Length
;
++
i
)
{
FileInfo
info
=
new
FileInfo
(
paths
[
i
]);
if
(
info
.
IsReadOnly
)
if
(
info
.
IsReadOnly
&&
info
.
Extension
==
".unity"
)
UnityEditor
.
EditorUtility
.
DisplayDialog
(
"Konnte nicht speichern"
,
"Die Scene "
+
paths
[
i
]
+
" ist Read-Only. Sie konnte nicht gespeichert werden. Sie kann aber unter anderem Namen gespeichert werden."
,
"Ok"
);
...
...
@@ -67,7 +67,7 @@ public class NotifyForLockedFiles : UnityEditor.AssetModificationProcessor
if
(!
BuildPipeline
.
isBuildingPlayer
)
{
FileInfo
info
=
new
FileInfo
(
newScene
.
path
);
if
(
info
.
IsReadOnly
)
if
(
info
.
IsReadOnly
&&
info
.
Extension
==
".unity"
)
{
UnityEditor
.
EditorUtility
.
DisplayDialog
(
"Read-Only"
,
"Die Scene "
+
newScene
.
path
+
" ist Read-Only. Sie wird nicht gespeichert werden können."
,
"Ok"
);
}
...
...
Write
Preview
Supports
Markdown
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