Search Unity

ARCore1.0 Sample Scene Error: "does not implement interface member"

Discussion in 'AR' started by JigglesDev, Feb 24, 2018.

  1. JigglesDev

    JigglesDev

    Joined:
    Sep 3, 2017
    Posts:
    3
    Hi All,

    I am experimenting with the newly released ARCore 1.0 for Unity with the 2018.1.08 beta. However, I have a console error I can not seem to fix. As a result, unable to build the sample scene.

    --- Error Message ---
    Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs(34,18): error CS0535: `GoogleARCoreInternal.BuildHelper' does not implement interface member `UnityEditor.Build.IPreprocessBuild.OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport)'

    --- Attempted Solutions ---
    None of the following fixed the issue;

    Thank you in advance to anyone who is able to point me in the right direction :)
     
  2. reedny

    reedny

    Joined:
    Mar 4, 2017
    Posts:
    57
    This is due to a change in Unity 2018 to the Build package, To get around it I for ARCore I modified the ARCore C# code to use the new interface, which does mean some commenting out of ARCore code, but the build worked OK and the app ran on the phone.
     
  3. sparks1020

    sparks1020

    Joined:
    Apr 1, 2017
    Posts:
    1
    Worked for me, thanks reedny!