mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
...
This commit is contained in:
parent
d064ed6d17
commit
1f4067479e
1 changed files with 3 additions and 7 deletions
|
@ -71,6 +71,7 @@ namespace SanAndreasUnity.Editor
|
||||||
public AssetExporter()
|
public AssetExporter()
|
||||||
{
|
{
|
||||||
this.titleContent = new GUIContent("Asset exporter");
|
this.titleContent = new GUIContent("Asset exporter");
|
||||||
|
this.minSize = new Vector2(400, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnGUI()
|
void OnGUI()
|
||||||
|
@ -80,7 +81,7 @@ namespace SanAndreasUnity.Editor
|
||||||
EditorGUILayout.HelpBox(
|
EditorGUILayout.HelpBox(
|
||||||
"This tool can export assets from game into Unity project.\n" +
|
"This tool can export assets from game into Unity project.\n" +
|
||||||
"Later you can use these assets inside Unity Editor like any other asset." +
|
"Later you can use these assets inside Unity Editor like any other asset." +
|
||||||
"It will store them in a separate folder, and will only export those objects that were not already exported. This means that you can cancel the process, and when you start it next time, it will resume.",
|
"It will store them in a separate folder, and will only export those objects that were not already exported. This means that you can cancel the process, and when you start it next time, it will skip already exported assets.",
|
||||||
MessageType.Info,
|
MessageType.Info,
|
||||||
true);
|
true);
|
||||||
|
|
||||||
|
@ -181,12 +182,7 @@ namespace SanAndreasUnity.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadingThread.Singleton.EnsureBackgroundThreadStarted();
|
LoadingThread.Singleton.EnsureBackgroundThreadStarted();
|
||||||
if (!LoadingThread.Singleton.IsBackgroundThreadRunning())
|
|
||||||
{
|
|
||||||
EditorUtility.DisplayDialog("", "Background thread for asset loading is not running. Try restarting Unity.", "Ok");
|
|
||||||
yield break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Loader.HasLoaded)
|
if (!Loader.HasLoaded)
|
||||||
{
|
{
|
||||||
EditorUtility.DisplayDialog("", "Game data must be loaded first.", "Ok");
|
EditorUtility.DisplayDialog("", "Game data must be loaded first.", "Ok");
|
||||||
|
|
Loading…
Reference in a new issue