Get/BindUserName (Unity)

- Declaration

public static string GetUserName(this CavrnusUser user)

public static IDisposable BindUserName(this CavrnusUser user, Action<string> onNameChanged)

- Description

Gets or Binds a string of the user’s current Name.

Note: Under-the-hood this is actually just calling: user.SpaceConnection.GetStringPropertyValue(user.ContainerId, "name");

Since "name" is a well-known value assigned by the server, we wrote this function as a helpful convenience.

NOTE: Since this value is representing data coming from outside the Properties system it cannot be assigned to, only read. Currently, user names can only be modified in the Management Console, using the User Management Tools.

- Sample

Â