mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Hopefully fixed Spine Preferences textureSettingsReference setting changing between MacOS and Win. See #1895.
This commit is contained in:
parent
f0f52da3ad
commit
fab2b6e4ce
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user