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.
0
Comments
-
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 SDKsDebugReturn
implementation makes use of Unity'sDebug.LogXX
methods.0