AnimateControllerParameter broken script after updating Unity to 5.6

Hey guys,

I had a couple of errors with PUN when I updated Unity to 5.6 (beta version). Although I could resolve most of the errors, only one kept me thinking how I can work it out.

Assets/Photon Unity Networking/Editor/PhotonNetwork/Views/PhotonAnimatorViewEditor.cs(180,10): error CS0104: `AnimatorControllerParameter' is an ambiguous reference between `UnityEngine.AnimatorControllerParameter' and `UnityEditorInternal.AnimatorControllerParameter'


This is the error. After trying to change the line of code with one of two references mentioned in the error, more errors came, so I reverted it back.

This is the line of code that gives the error:

private AnimatorControllerParameter GetAnimatorControllerParameter(int i) { some other code }

Any help would be greatly appreciated!

Comments

  • Hi,

    which version exactly of Unity are you using, Unity 5.6 is not in beta anymore, it's Unity 2017 that is currently in beta.

    Bye,

    Jean
  • Hi,

    I am using Unity 2017, the one version in beta.

    Is there a workaround the error?

    Thanks