issue with animator view

Options
im getting these 2 errors and i got no idea where its coming from since im not setting a layer index anywhere hopping someone cal tell me whats going on here cause this seems to be stopping my animations from being played across the network.

Invalid Layer Index
UnityEngine.Animator:GetLayerWeight(Int32)
PhotonAnimatorView:SerializeDataDiscretly(PhotonStream) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/Views/PhotonAnimatorView.cs:321)
PhotonAnimatorView:OnPhotonSerializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/Views/PhotonAnimatorView.cs:450)
System.Reflection.MethodBase:Invoke(Object, Object[])
PhotonView:ExecuteComponentOnSerialize(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:527)
PhotonView:SerializeComponent(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:437)
PhotonView:SerializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:334)
NetworkingPeer:OnSerializeWrite(PhotonView) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3279)
NetworkingPeer:RunViewUpdate() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3200)
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:90)


and

Invalid Layer Index
UnityEngine.Animator:SetLayerWeight(Int32, Single)
PhotonAnimatorView:DeserializeDataDiscretly(PhotonStream) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/Views/PhotonAnimatorView.cs:356)
PhotonAnimatorView:OnPhotonSerializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/Views/PhotonAnimatorView.cs:468)
System.Reflection.MethodBase:Invoke(Object, Object[])
PhotonView:ExecuteComponentOnSerialize(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:527)
PhotonView:DeserializeComponent(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:358)
PhotonView:DeserializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonView.cs:344)
NetworkingPeer:OnSerializeRead(Hashtable, PhotonPlayer, Int32, Int16) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3393)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1840)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:83)

Comments

  • Tobias
    Options
    I guess you had this issue in Unity 5?
    PUN v1.51 has a few fixes for Unity 5 and AnimatorView. Let us know if your issue is still there.
  • jbgh2
    Options
    I'm seeing the same errors when using Unity 5.1.1p1 and PUN 1.58.
    The animations are being replicated across the network but these two errors are constantly produced.
    When I attach the debugger the layer weight can be found in the inspector?!

    What is strange is that the Mecanim demo runs fine and I'm basically copying that demo but I'm using a NavMesh for pathing and the model and animation from Unity's survival demo.
  • DRRosen3
    Options
    This issue still exists. Why was this never addressed?