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

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

SlattBurger
2022-08-24 20:53:06

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 ?

Comments

Isaac_Augusto
2022-08-25 15:07:27

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
2022-08-26 18:24:07

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.

Back to top