User

altspace~ User

new User()

Details of an Altspace user.

Properties:
Name Type Description
userId String

Unique id for this user (per site origin)

displayName String

The user's chosen display name.

isModerator Boolean

True if the user should be able to moderate apps.

avatarInfo Object

What avatar the user is wearing

Properties
Name Type Description
sid String

The series ID of the avatar. Will be one of: "rubenoid-male-01" (human male), "rubenoid-female-01" (human female), "s-series-m01" (robot male), "s-series-f01" (robot female), "pod-classic" (rounded robot), "a-series-m01" (swirled robot), "x-series-m02" (visor robot), "robothead-propellerhead-01" (helicopter robot), "robothead-roundguy-01" (bumblebee robot), or other future avatar models.

primaryColor String

The main color of the avatar (s, a, x, and pod series only)

highlightColor String

The accent color of the avatar (s, a, x, and pod series only)

textures Array

Texture selection IDs (rubenoids only)

Events

avatarchange

The avatarchange event is fired when the user changes their avatar.

Properties:
Name Type Description
data Object

The new avatar info, in the same format as User.avatarInfo