[untiy] Fixed a compile error when building executable (Texture2D.alphaIsTransparency exists only in editor).

This commit is contained in:
Harald Csaszar 2019-09-27 12:03:50 +02:00
parent b1c1dac17a
commit 19bbd5519f

View File

@ -580,7 +580,9 @@ namespace Spine.Unity.AttachmentTools {
static void CopyTextureAttributesFrom(this Texture2D destination, Texture2D source) {
destination.filterMode = source.filterMode;
destination.anisoLevel = source.anisoLevel;
#if UNITY_EDITOR
destination.alphaIsTransparency = source.alphaIsTransparency;
#endif
destination.wrapModeU = source.wrapModeU;
destination.wrapModeV = source.wrapModeV;
destination.wrapModeW = source.wrapModeW;