Hi there,
Spine version: 3.6.48 Pro
Unity version: 5.4.5p5 Personal
Spine Runtimes: 3.6
I followed the instuctions from Søren Juul Øllgaard video (Spine - Unity setup - YouTube) on "Spine - Unity setup" and encountered the following 2 errors when building Unity.
Error 1:
Assets/spine-unity/Modules/AttachmentTools/AttachmentTools.cs(1125,55): error CS0121:
The call is ambiguous between the following methods or properties:
Spine.Unity.Modules.AttachmentTools.AttachmentRegionExtensions.SetRegion(this Spine.MeshAttachment, Spine.AtlasRegion, bool)' and
Spine.Unity.Modules.AttachmentTools.AttachmentRegionExtensions.SetRegion(this Spine.Attachment, Spine.AtlasRegion, bool)'
Fix: change this > newAttachment.SetRegion(atlasRegion);
to this > newAttachment.SetRegion(atlasRegion, false);
Error 2:
Error CS1061 'Camera' does not contain a definition for 'activeTexture' and no extension method 'activeTexture' accepting a first argument of type 'Camera' could be found (are you missing a using directive or an assembly reference?)
Fix: change this >
void DoRenderPreview (bool drawHandles) {
if (this.PreviewUtilityCamera.activeTexture == null || this.PreviewUtilityCamera.targetTexture == null )
return;
to this > void DoRenderPreview (bool drawHandles) {
if (this.PreviewUtilityCamera.targetTexture == null )
return;
I'm not sure if these fixes are correct, but it now builds. Please let me know if anyone else has encountered this or has another solution.
Cheers,
Tim.