difference between debug.log in unity and debugreturn in photon

Hello, I'm curious about debug.log and debugreturn. Could anyone answer me. Thanks a lot.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2017
    Hi @steven_lee,

    Thank you for choosing Photon!

    Debug.Log() is the method to output a message to Unity's Editor console or to player logs. It is the same a MonoBehaviour.print() method.
    IPhotonPeerListener.DebugReturn() methods in C# SKDs are implemented depending on the client SDK (framework or engine) to do multiple levels logging. It is just a nice pattern to have custom flexible implementation.
    For instance in Unity SDKs DebugReturn implementation makes use of Unity's Debug.LogXX methods.