Disable BlueBox

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

Moderators: Lapo, Bax

schwips
Posts: 3
Joined: 14 Mar 2015, 08:22

Disable BlueBox

Postby schwips » 16 Nov 2021, 13:58

Hi

How can I disable BlueBox on client-side?

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Disable BlueBox

Postby Lapo » 16 Nov 2021, 15:42

Hi,
assuming you are connecting by passing a ConfigData object to the SmartFox.Connect(...) method, you can set ConfigData.UseBlueBox = false before starting the connection.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
schwips
Posts: 3
Joined: 14 Mar 2015, 08:22

Re: Disable BlueBox

Postby schwips » 16 Nov 2021, 16:13

Hi Lapo

Thank you for your fast answer.

But I find no UseBlueBox property in the ConfigData-Class

http://docs2x.smartfoxserver.com/api-do ... 7e9b95.htm

Only "BlueBox" but this is read only.

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Disable BlueBox

Postby Lapo » 16 Nov 2021, 16:18

Sorry, my bad. I mentally translated the Java way into C# :)
But in actuality the C# API is slightly different:

Code: Select all

ConfigData.BlueBox.IsActive = false;


Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 22 guests