mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 09:38:44 +08:00
[unity] Fixed preferences constantly loading in Unity 2020.1+ when not at default location. Closes #1817.
This commit is contained in:
parent
51a0641c6e
commit
f365815127
@ -109,9 +109,13 @@ namespace Spine.Unity.Editor {
|
||||
GetOrCreateSettings();
|
||||
}
|
||||
|
||||
internal static SpinePreferences GetOrCreateSettings () {
|
||||
var settings = AssetDatabase.LoadAssetAtPath<SpinePreferences>(SPINE_SETTINGS_ASSET_PATH);
|
||||
static SpinePreferences settings = null;
|
||||
|
||||
internal static SpinePreferences GetOrCreateSettings () {
|
||||
if (settings != null)
|
||||
return settings;
|
||||
|
||||
settings = AssetDatabase.LoadAssetAtPath<SpinePreferences>(SPINE_SETTINGS_ASSET_PATH);
|
||||
if (settings == null)
|
||||
settings = FindSpinePreferences();
|
||||
if (settings == null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user