mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
prevent running in play mode
This commit is contained in:
parent
e97e308a0c
commit
75018ffc4a
1 changed files with 6 additions and 0 deletions
|
@ -174,6 +174,12 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
if (this.IsExportingFromGameFiles)
|
||||
{
|
||||
if (!F.IsAppInEditTime)
|
||||
{
|
||||
EditorUtility.DisplayDialog("", "This type of export can only run in edit-mode.", "Ok");
|
||||
yield break;
|
||||
}
|
||||
|
||||
LoadingThread.Singleton.EnsureBackgroundThreadStarted();
|
||||
if (!LoadingThread.Singleton.IsBackgroundThreadRunning())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue