Hello,
I try to build AssetBundles in Unity, and everything goes well without Spine Library. But when I import Spine Library into Unity and run BuildPipeline.BuildAssetBundles
, Unity throws an Error:
Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs(583,16): error CS1061: 'Texture2D' does not contain a definition for 'alphaIsTransparency' and no accessible extension method 'alphaIsTransparency' accepting a first argument of type 'Texture2D' could be found (are you missing a using directive or an assembly reference?)
Then the building failed
Error building Player because scripts had compiler errors
I don't know how to solve this problem. My Unity version is 2018.4.8f1, and Spine Library is spine-unity-3.8-2019-09-25.unitypackage
Thanks a lot!
I attempted to comment the error line (AtlasUtilities.cs(583,16)), then the building is success.
I don't know if it will affect the actual AssetBundle or will cause any error when running. I will be still trying.
Waiting for your help!