NavidK0 / SimpleGraphQL-For-Unity

A simple graphQL client that allows one to use .graphql files (or code) for queries, mutations, and subscriptions with Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error CS0539: 'LinkXmlInjector.OnBeforeRun(BuildReport, UnityLinkerBuildPipelineData)' in explicit interface declaration is not found among members of the interface that can be implemented

haliik opened this issue · comments

Thank you for the wonderful library.

Unity 2021.2.0b13 (macOS)

error CS0539: 'LinkXmlInjector.OnBeforeRun(BuildReport, UnityLinkerBuildPipelineData)' in explicit interface declaration is not found among members of the interface that can be implemented

/Editor/LinkXmlInjector.cs

        void IUnityLinkerProcessor.OnBeforeRun(BuildReport report, UnityLinkerBuildPipelineData data)
        {
        }

        void IUnityLinkerProcessor.OnAfterRun(BuildReport report, UnityLinkerBuildPipelineData data)
        {
        }

https://unity3d.com/jp/unity/whats-new/2021.1.0

  • Scripting: Deprecated: Deprecated IUnityLinkerProcessor.OnAfterRun.
  • Scripting: Deprecated: Deprecated IUnityLinkerProcessor.OnBeforeRun.

That's unfortunate.

I put a post on the unity forums about what the recommended replacement is: https://forum.unity.com/threads/the-current-state-of-link-xml-in-packages.995848/#post-7532342

Oh. sorry I misread. It's just the two methods we don't need that are gone, not the actual interface. We could probably just put them behind an #ifdef then.

Thank you for your quick reply.

Now that Unity 2021.2 is out it would be nice to surround these in a ifdef and have this issue resolved

Now that Unity 2021.2 is out it would be nice to surround these in a ifdef and have this issue resolved

I'll take a look as soon as I get a chance. There's been a number of API changes in 2021.2 that require updating a bunch of assets.

Should be fixed with c5e7634.