Leia Media
Leia Media refers to images and videos with defined rows and columns that, once interlaced, create 3D visuals.

Displaying Image or Playing Video using Leia Media‌


  1. 1.
    Drag LeiaMedia > Prefabs > LeiaMediaViewer into a scene. Ensure the
    LeiaMediaViewer is visible to the LeiaCamera.
  2. 2.
    Attach LeiaMedia content (texture or video) to one of the LeiaMediaViewer's properties or enter URL in Video URL field.

Supported usage

LeiaMedia can receive a Texture, Video, or Video URL and can display this Media in a holographic way on Leia Inc's holographic LitByLeia™ displays.
The user can specify the
  • active media type (Texture, Video, Video URL)
  • cols or rows if not parsed correctly
  • MediaScaleMode:
    • World XYZ to use gameObject's world scale
    • OnscreenPercent to manually specify percent of screen space on our LitByLeia™ displays. OnscreenPercent is always a percent of screen space, regardless of device orientation or device aspect ratio

Notes on usage

  • LeiaMedia should have a name that follows the format [name][cols]x[rows].[fmt]. Examples: image_2x2.png, video_2x2.mp4
  • To play Videos from URL, Player Settings > Other Settings > Internet Access must be set to “Required” instead of “Auto” . URLs should use https://
  • Linux and Android often have video encoding problems. An .ogv is supplied to you which is known to work with LeiaMedia on Linux and Android, but do check for platform compatibility issues if you encounter an issue with playing Videos
An example of a scene that has been configured for viewing already-configured LeiaMedia is provided for users in the "LeiaMediaVideoPlayer" scene.
There is a sample UI asset which can be used to control LeiaMedia which are playing back videos. See the "LeiaVideoSampleUI" prefab.

Recording Leia Media

It is possible to record LeiaMedia using an editor-only tool within the Leia Unity SDK. Once LeiaMedia is generated, the LeiaMedia can be used as a resource in a built project and can be displayed to users like any other LeiaMedia.‌
  • In Unity 2017.3+, this tool can record mp4s.
  • In all Unity versions supported by the Leia Unity SDK, this tool can record jpgs and pngs.
  • Some Unity development platforms (Windows, OSX, Linux) may lack support for recording certain file formats
An example of a scene that has been configured for recording is provided for users in the "ExampleRecordScene".
LeiaLoft > Modules > LeiaMedia > Example > Scenes > ExampleRecordScene.unity
See the MainCamera object in this scene with its attached LeiaCamera and LeiaMediaRecorder scripts.‌


  • Create a scene with moving content and a LeiaCamera
  • Attach the LeiaMediaRecorder.cs script to the gameObject with a LeiaCamera
  • Set the trigger for recordings to start (a frame, user input, or a script). If trigger is a frame, specify frames to record between
  • Set the recording format (jpg, png, in Unity 2017.3+ mp4)
  • Enter play mode; if trigger to begin recording is a script or trigger, trigger the recording
  • As the user finishes recording, content will be saved to the Assets/StreamingAssets folder