SmartFoxServer Unity/.NET API
AutoJoin Method
NamespacesSmartFoxClientAPISmartFoxClientAutoJoin()()()
Automatically join the the default room (if existing) for the current zone.
A default room can be specified in the SmartFoxServer server-side configuration by adding the autoJoin = "true" attribute to one of the <Room>> tags in a zone.
When a room is marked as autoJoin it becomes the default room where all clients are joined when this method is called.
Declaration Syntax
C#Visual BasicVisual C++
public void AutoJoin()
Public Sub AutoJoin
public:
void AutoJoin()
Remarks

Sends:
SFSEvent..::.OnJoinRoomDelegate
SFSEvent..::.OnJoinRoomErrorDelegate

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to join the default room in the current zone.
CopyC#
smartFox.AutoJoin();
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)