MOTAR Classes
A guide to accessible Classes within the SDK.
The MOTAR SDK for Unity allows you to integrate data from the logged in user into your applications via the MOTARProfile Class
MOTARProfile Class
Namespace: MOTAR Assembly: Included in the MOTAR SDK
Description
Represents a user profile in the MOTAR system. This class provides essential user information such as their handle, name, and profile picture.
Usage
An instance of MOTARProfile is accessible after a user has logged in using the MOTAR SDK Auth / Device Sync their user profile information can be accessed using the Communications.Connection.userProfile
MOTARProfile userProfile = Communications.Connection.userProfile;
Debug.Log($"User ID: {userProfile.userId}, Handle: {userProfile.handle}");
userId
string
The unique identifier for the user.
prefix
string
The user’s prefix (Mr., Ms., Dr., etc.)
firstName
string
The user's first name.
lastName
string
The user's last name.
handle
string
The user's handle or username.
title
string
The user’s title
profilePicId
int
The name of the company this user belongs to (can be blank).
profilePicData
Texture2D
Texture for the profile pic
MOTARUserCompanyInfo Class
Namespace: MOTAR Assembly: Included in the MOTAR SDK
Description
Represents a user profile company information data in the MOTAR system. This class provides essential user information about the company such as their name, and icon
Usage
An instance of MOTARUserCompanyInfo as a subset of MOTARProfile and is accessible after a user has logged in using the MOTAR SDK Auth / Device Sync:
name
string
The company name.
icon
int
The company icon id.
iconData
Texture2D
Texture for the icon
Last updated