SFS Api Logs Problem in Unity WebGL

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
noveltysoft
Posts: 39
Joined: 19 Sep 2012, 03:24

SFS Api Logs Problem in Unity WebGL

Post by noveltysoft »

Hi

I just completed my Multiplayer Game with SFS 2x and Unity 5.3.1f1. Now in my WebGL build, i need to turn off debug logs. i have removed every debug statement from code, but i am still getting a lot of information related to SFS connection getting logged in user console in browser. here is a screenshot of WebGL build.

https://s3.amazonaws.com/uploads.hipcha ... piLogs.png

Image

can someone help me on this?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFS Api Logs Problem in Unity WebGL

Post by Bax »

I suggest to take a look at the Connector example of the Unity 5 examples package available here: http://www.smartfoxserver.com/download/sfs2x#p=examples
If you build the example for WebGL, you will notice running it that no message is logged unless you check the "Show debug" checkbox in the interface. The example just sets ConfigData.Debug to true or false before passing it to the SmartFox.Connect method.
Paolo Bax
The SmartFoxServer Team
Post Reply