Skip to content

Releases: colyseus/colyseus-unity-sdk

0.15.9

25 Mar 17:30
Compare
Choose a tag to compare

Fixes compilation error for some Unity versions (15d820c)

-            var splittedPath = pathWithQueryString.Split("?");
+            var splittedPath = pathWithQueryString.Split('?');

0.15.8

16 Jan 14:56
Compare
Choose a tag to compare
  • Add missing client.Auth.GetUserData() method.
  • First OnChange() call triggers GetUserData() if Token is present.

0.15.7

10 Jan 18:04
Compare
Choose a tag to compare

New Auth API (https://github.com/colyseus/colyseus/releases/tag/0.15.15)

Define callback for Auth state change:

client.Auth.OnChange((Colyseus.AuthData<User> authData) =>
{
	if (authData.user != null)
	{
		// Logged in!
	}
	else
	{
		// Logged out!
	}
});

Methods:

  • client.Auth.RegisterWithEmailAndPassword()
  • client.Auth.SignInWithEmailAndPassword()
  • client.Auth.SignInAnonymously()
  • client.Auth.SendResetPasswordEmail()
  • client.Auth.SignOut()
  • (❌ OAuth not yet implemented) client.Auth.SignInWithProvider()

Example

class User
{
	public int id;
	public string email;
	public string name;
}

// ...

try
{
	var response = await client.Auth.SignInWithEmailAndPassword<User>("endel@colyseus.io", "123456");
	Debug.Log(response.user.id);
	Debug.Log(response.user.email);
	Debug.Log(response.user.name);
}
catch (Colyseus.HttpException e)
{
	// e.Message
	// e.StatusCode
}

0.15.5

24 Sep 03:29
Compare
Choose a tag to compare
bump 0.15.5

0.15.4

24 Jun 21:04
Compare
Choose a tag to compare

0.15.3

22 Jun 13:10
Compare
Choose a tag to compare
  • Fix ColyseusManager destroying game object when changing scenes (#214) - Thanks @lcd11001

0.15.2

09 Jun 22:16
Compare
Choose a tag to compare
fix issue with .Reconnect()

0.15.1

07 May 21:19
Compare
Choose a tag to compare
bump version 0.15.1

0.15.0

04 May 16:14
Compare
Choose a tag to compare
bump version 0.15

0.14.21

24 Jan 17:50
Compare
Choose a tag to compare

Fixes #198, thanks to @deniszykov