diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs index a8469d22d..c838b9ffe 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Windows/SpinePreferences.cs @@ -236,7 +236,9 @@ namespace Spine.Unity.Editor { if (string.IsNullOrEmpty(textureSettingsRef.stringValue)) { var pmaTextureSettingsReferenceGUIDS = AssetDatabase.FindAssets("PMATexturePreset"); if (pmaTextureSettingsReferenceGUIDS.Length > 0) { - textureSettingsRef.stringValue = AssetDatabase.GUIDToAssetPath(pmaTextureSettingsReferenceGUIDS[0]); + var assetPath = AssetDatabase.GUIDToAssetPath(pmaTextureSettingsReferenceGUIDS[0]); + if (!string.IsNullOrEmpty(assetPath)) + textureSettingsRef.stringValue = assetPath; } }