I get error when I request state authority (shared mode, 1.1.2 Nightly )

SlattBurger
edited August 2022 in Fusion

I get this error when I try to Request state authority from NetworkObject: 

AssertException: Exception of type 'Fusion.AssertException' was thrown. Fusion.Assert.Check (System.Boolean condition

Line that causes this error:

pItem.GetComponent<NetworkObject>().RequestStateAuthority();

What this could be caused by ?

Best Answer

  • SlattBurger
    Answer ✓

    Found out I got this error because NetworkObject I was trying to request authority from was not registered in NetworkRunner, so my problem is solved. Thank you for your time.

Answers

  • Isaac_Augusto
    edited August 2022

    Hi,

    Please, send the full log.

    Where is this line called from? FixedUpdateNetwork? A callback from the NetworkRunner? Do the NetworkObject has AllowStateAuthorityOverride enabled?

    -----

    Isaac Augusto

    Photon Fusion Team

  • SlattBurger
    Answer ✓

    Found out I got this error because NetworkObject I was trying to request authority from was not registered in NetworkRunner, so my problem is solved. Thank you for your time.