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
  1. Welcome
  2. Government Installation & Setup Tutorial
  3. Learn to Fly UFO - XR App Build Tutorial

Set Up the Scenes

PreviousInstall Sample ProjectNextSet Up XR Controls

Last updated 1 month ago

Setting Up the Scenes

  1. Navigate to Assets -> Samples -> MOTAR SDK -> 1.0.0 -> Learn to Fly UFO (URP Only) -> Scenes.

  2. Open BarnScene.

Adding the Player

  • Navigate to Assets -> Samples -> MOTAR SDK -> 1.0.0 -> Avatar -> Resources.

  • Drag MOTAR_Player prefab into the Hierarchy window.

  • Set its Position to (0, 0, 7) and Rotation to (0, 180, 0).

Changing Movement Controls

  • Locate the Left Controller inside MOTAR_Player (MOTAR_Player -> Camera Offset).

  • Find the component MOTAR Controller Manager. In the Inspector window

  • Uncheck Smooth Motion to enable teleport movement.

Linking Player to UFO Animation

  • In Hierarchy, find UFO_1 inside UFO_Assets.

  • Locate the UFO Event Manager component in the Inspector window

  • Click + under On UFO Animation End ().

  • Drag MOTAR_Vignette_1 from MOTAR_Player -> Camera Offset -> Main Camera into the new event.

  • From the "No Function" dropdown, select MOTARVignette -> FadeOut().

  • Navigate to MOTAR_Vignette_1,

    • Alternatively, click Add Component

    • Type MOTARLoadScene

  • Press Enter on your keyboard to add the script.

  • Set Scene Index to 2 in MOTARLoadScene.

  • Under MOTAR Vignette, click + under Fade Out Ended ().

  • Drag MOTAR_Vignette_1 into the event and select MOTARLoadScene -> LoadScene().

  • Save the scene.

Copying Player to the Final Scene

  • In BarnScene, select MOTAR_Player and copy it (Edit -> Copy).

  • Open Assets -> Samples -> MOTAR SDK -> 1.0.0 -> Learn to Fly UFO (URP Only) -> Scenes -> UFOScene.

  • Paste MOTAR_Player into the Hierarchy.

  • Set its Position to (0, 0, 0) and Rotation to (0, 0, 0).

Fading Player in the Final Scene

  • In Hierarchy, find RestartButton inside UI -> Canvas_Ending.

  • Locate the Button component.

  • Click + under On Click ().

  • Drag MOTAR_Vignette_1 from MOTAR_Player -> Camera Offset -> Main Camera into the event.

  • Select MOTARVignette -> FadeOut().

  • Locate MOTARLoadScene in MOTAR_Vignette_1.

  • Change Scene Index to 1.

  • Save the scene.


The Player prefab
Prefab added to the UFO Animation End ()
Select the function through the popout menus
FadeOut function added to the UFO Animation End ()