MOTAR
  • About
  • Welcome
    • Get a License
    • Installation & Tutorial Files
    • Commercial Installation & Setup Tutorial
      • Learn to Fly UFO - XR App Build Tutorial
        • Prerequisites
        • Install Sample Project
        • Set Up the Scenes
        • Set Up XR Controls
        • Configure the MOTAR SDK
        • Build the Application
      • Advanced Deployment Guide
      • Get MOTAR 3D
    • Government Installation & Setup Tutorial
      • Learn to Fly UFO - XR App Build Tutorial
        • Prerequisites
        • Install Sample Project
        • Set Up the Scenes
        • Set Up XR Controls
        • Configure the MOTAR SDK
        • Build the Application
      • Advanced Deployment Guide
      • Get MOTAR 3D
  • RELEASE NOTES
    • MOTAR 3.0
    • MOTAR 3.0 Beta Hotfix
    • MOTAR 3.0 (Beta)
  • HOW TO
    • MOTAR Core Services
      • Using MOTAR Hub
        • How to Discover Listings
        • How to Download Listings
        • How to Use the Model Inspector
        • How to View MIAB Compatible Listings
        • How to Use Version Tree in Hub
        • How to Launch Apps
      • Using MOTAR Studio
        • How to Manage Each Listing Type
          • App | Listing Type
          • Models | Listing Type
          • Video | Listing Type
          • Audio | Listing Type
          • Image | Listing Type
          • Document | Listing Type
        • How to Manage Listing Permissions
        • How to Use State Manager
        • About MOTAR Digital Thread
          • Digital Thread Iconology
          • New Version | Digital Thread
          • Remix | Digital Thread
          • Authorizing and Certifying Listings
        • MOTAR Secure File Upload & Scanning
      • Using MOTAR Devices
        • How to Sync a Device to MOTAR Web
      • Using MOTAR Admin On A Commercial License
        • Owning Company (Self Managed) | Commercial
        • How to Manage Partners | Commercial
          • How to Add Partners | Commercial
        • How to Manage Users | Commercial
          • How to Add Users | Commercial
          • How to Add User to Studio Group | Commercial
        • How to Manage Studio Groups | Commercial
          • How to Add Studio Groups
      • Using MOTAR Admin On A Government License
        • Owning Company (Self Managed) | Government
        • How to Manage Access | Government
          • How to Create A User | Government
          • How to Add User to Studio Group | Government
          • How to Manage Users | Government
        • How to Manage Studio Groups | Government
          • How to Add Studio Groups | Government
        • How to Manage Contractors | Government
          • How to Add Contractors | Government
      • Using MOTAR SDK
        • MOTAR SDK for Unity
          • Installation
            • Detailed Scoped Registry Instructions
          • Configuration
          • MOTAR Classes
      • Using MOTAR Holodeck
      • Installing and Using MOTAR 3D
      • Backup & Restore Data
      • Updating MOTAR Installation
  • Support
    • Contact Us!
Powered by GitBook
On this page
  • MOTARProfile Class
  • Description
  • Usage
  • MOTARUserCompanyInfo Class
  • Description
  • Usage
  1. HOW TO
  2. MOTAR Core Services
  3. Using MOTAR SDK
  4. MOTAR SDK for Unity

MOTAR Classes

A guide to accessible Classes within the SDK.

PreviousConfigurationNextUsing MOTAR Holodeck

Last updated 2 months ago

The MOTAR SDK for Unity allows you to integrate data from the logged in user into your applications via the MOTARProfile Class

The data is returned as a object or a Texture2D where applicable.

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.

This class is expected to evolve in future versions to include more data for developers.

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}");

Property
Type
Description

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

companyInfo

User Company Info

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:

Property
Type
Description

name

string

The company name.

icon

int

The company icon id.

iconData

Texture2D

Texture for the icon

Json.net
MOTARUserCompanyInfo