LogoLogo
Sign in to Leia Developer Portal
  • LeiaSR™ Documentation
  • LeiaSR SDK
    • LeiaSR™ Native SDK Guide
  • Unity Plugin
    • LeiaSR™ Unity Plugin Guide
      • Getting Started
      • Project Setup
      • Scene Setup
      • LeiaDisplay Component
        • Selecting Objects
        • Worldspace UI Canvas
      • Quick API
      • Extensions
        • Model Viewer Sample Scene
        • Android Live Preview: Leia Remote 2
        • Auto Focus
          • LeiaRaycastFocus
          • LeiaTargetFocus
          • LeiaDepthFocus
      • Content Design
        • Optimizing Object Placement
        • UI and Depth Violations
        • Depth of Field
        • Backgrounds
      • Render Pipeline Support
  • Unreal Plugin
    • Unreal SDK Guide
      • Getting Started
      • Manual Download And Import
      • Scene Setup
      • Quick API
      • Extensions
        • Android Live Preview: Leia Remote 2
      • Required Project Settings
      • Required Build Settings: Android
      • Content Design
  • NEURD SDK
    • NeurD SDK Guide
Powered by GitBook
On this page
  • Setup
  • Toggle 3D Mode On / Off
  • Set Focal Distance
  • Set Depth Factor
  • Set Lookaround Factor
  1. Unity Plugin
  2. LeiaSR™ Unity Plugin Guide

Quick API

This API is all you need to utilize LeiaSR™ displays.

Setup

The following API assumes you have a reference to the LeiaSR™ Display you intend to manipulate.

using LeiaUnity;

public LeiaDisplay _leiaDisplay;

Toggle 3D Mode On / Off

_leiaDisplay.Set3DMode(on);
_leiaDisplay.Set3DMode(off);

Set Focal Distance

_leiaDisplay.FocalDistance = 10;

Set Depth Factor

_leiaDisplay.DepthFactor = 0.3f

Set Lookaround Factor

_leiaDisplay.LookaroundFactor = 0.5f;

PreviousWorldspace UI CanvasNextExtensions

Last updated 7 months ago