Search Unity

Third Party Photon Unity Networking PHOTON_DEVELOP directive

Discussion in 'Multiplayer' started by unity_495nTymE-fcjeg, Oct 11, 2020.

  1. unity_495nTymE-fcjeg

    unity_495nTymE-fcjeg

    Joined:
    Apr 6, 2020
    Posts:
    1
    what does the
    Code (CSharp):
    1. #if PHOTON_DEVELOP
    directive shown below do?

    Code (CSharp):
    1. #if PHOTON_DEVELOP
    2.             if( ReceivingSender != null )
    3.             {
    4.                 ReceivingSender.OnPhotonSerializeView( stream, info );
    5.             }
    6.             else
    7. #endif
    8.             {
    9.                 if (stream.PeekNext() is byte[])
    10.                 {
    11.                     this.DeserializeSynchronizationTypeState(stream);
    12.                 }
    13.  
    14.                 this.m_StreamQueue.Deserialize(stream);
    15.                 this.DeserializeDataDiscretly(stream);
    16.             }
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,067
    It's a compile define we use to develop/debug some cases.