Demo scene "Null Reference Exception"

Assen_ILIEV

New member
Hello,

The Demo scene occasionally generates errors. It happens when shooting at the starting room door frame (area surrounded in red in the pic below) - one error per shot bullet.

1587022898244.png

The same happens in the next room - when shooting at the crates to the left or at the torso at the right side.

When playing the built application, it generates errors at the host but does not stop the game.

It's not a big deal but can be confusing during the start (at least, it was for me :) - redid the setting a couple of times before figuring out how to replicate)

Thanks,
Assen
 

Attachments

  • 1587022650458.png
    1587022650458.png
    356.8 KB · Views: 0

Justin

Administrator
Staff member
Thank you for letting me know! You can fix this by changing line 164 within PunObjectPool to:

Code:
                if (photonView != null) {
                    PhotonNetwork.RaiseEvent(PhotonEventIDs.ObjectDestruction, photonView.ViewID, m_RaisedEventOptions, m_ReliableSendOptions);
                }
 
Top