Looking Glass Documentation
Buy Looking GlassDiscord
  • Looking Glass User Guide
  • NEW! ✨Looking Glass Go✨
  • Displays
    • 🔮Looking Glass Go
      • ⚡Get Started with Looking Glass Go
      • 📱Using the Go Mobile App
      • 🔆Liteforms™
      • 🖥️Standalone and Desktop Modes
      • 🔌Power and LED States
      • 🪄Default Playlist
      • ⏭️What's Next?
      • 👜Accessories
      • ⚙️Advanced Playlist Creation
      • ⚙️Manual Firmware Update
      • ❓Common Troubleshooting Issues
    • 🔮Looking Glass 16" Light Field Displays
      • 🪄Looking Glass 16" Light Field Display (Landscape)
      • 🪄Looking Glass 16" Light Field Display (Portrait)
      • ❓Common Troubleshooting Issues
    • 🔮Looking Glass 32" Light Field Displays
      • 🪄Looking Glass 32" Light Field Display (Landscape)
      • 🪄Looking Glass 32" Light Field Display (Portrait)
      • ❓Common Troubleshooting Issues
    • 🔮Looking Glass 65" Light Field Display
    • 🔮Looking Glass Portrait
      • ⚡Get Started with Looking Glass Portrait
      • 🎇Demo Holograms
      • ❓Common Troubleshooting Issues
  • Software
    • 📚Overview
    • 🌉Looking Glass Bridge
      • ✨Using Looking Glass Bridge
      • 🪟Display Settings on Windows
      • 🍎Display Settings on macOS
      • 🐧Display Settings on Linux
      • 👷Troubleshooting
    • ⚙️Looking Glass Bridge SDK
      • 🪛Web Application Integration
      • 🔌Integrating Native Applications
      • 📓Native Function Reference
      • 🐦Looking Glass Core Migration Guide
    • 🔌Unity
      • ⚡Using Unity with Looking Glass
      • Setting up your Development Environment
      • Example Scenes
      • Prefabs
        • Hologram Camera
        • 3D Cursor
        • Dual Monitor Application
      • Script Reference
        • HologramCamera.cs
        • LKGDisplaySystem.cs
        • QuiltCapture.cs
        • Cursor3D.cs
        • OrbitControls.cs
        • BlockUploader.cs
        • MobileDMAController.cs
        • iOS Sample Scene Scripts
          • ChangeInteractionModality.cs
          • XYSlider.cs
          • XYSpotlight.cs
          • AudioRotateControl.cs
          • ModelController.cs
          • DemoIOSUIController.cs
          • PageHandler.cs
          • PageConnectHandler.cs
          • PageCalibrateHandler.cs
          • PageTestHandler.cs
          • DynamicAlcove.cs
      • Package Integrations
        • Built-in Render Pipeline Post-Processing
      • Developing for iOS
      • Depth of Field and Other Post-Processing Effects
      • Quilt Video Audio and Playback
      • Developing for Ultraleap Hand Tracking on Looking Glass
      • Looking Glass Pro (Legacy)
      • Additional Support
      • Change Log
    • 📽️Looking Glass Studio
      • 📚Using Looking Glass Studio
      • 🎬Hologram Video iOS App
      • RGB-D Photo / Video
      • Quilt Images / Video
      • iPhone Portrait Photos
      • Android Depth Photos
        • Samsung Portrait Mode
      • Light Field Photosets
      • Exporting Holograms
      • Troubleshooting
    • 👀Looking Glass Model Viewer
    • 🧊Looking Glass Blocks
      • ✨Convert any image into a hologram
      • ⬆️Uploading, editing and sharing Quilts
      • 🥽Viewing your holograms on different platforms
    • 🎨Other Creator Tools
      • 🍹Blender
      • 🔌Unreal Engine
        • 🗒️Change Log and Old Versions
        • 💽Installing the Unreal Engine plugin
        • 🎥Using the Unreal Engine Plugin
          • Using the HoloPlay Capture
          • Exporting Quilt Images and Video with Sequencer
        • Accessing HoloPlay Data with Blueprint Scripting
        • Packaging the Project
        • Unreal Engine 4 (Legacy Support)
          • Unreal Engine 4 Quick Start
            • Using the HoloPlay Capture
            • Exporting Quilt Images and Video with Sequencer
      • 🌐WebXR
        • 🔶PlayCanvas
        • 3️⃣3️⃣ Three.JS
        • ⚛️React-Three-Fiber
        • 🌈Spline
    • 🧪Experiments
      • 🔆Liteforms™
        • 🪟Get Started on Windows
        • 🍎Get Started on MacOS
        • 🧙Making Custom Liteforms
        • 🏪Configure Liteforms for Kiosk Setup
      • 📽️Media Encoder
        • ⏩Looking Glass Media Encoder
    • 🧑‍🤝‍🧑Third Party Apps and Tools
      • 🗺️ParaView
      • 🔬VTK (Visualization Toolkit)
      • 🗡️3D Slicer
      • 🔩Community Made Tools & Projects
  • Key Concepts
    • 🔑Hologram 101
      • 🎉Making great holograms
      • 🌎Holograms in the real world
      • 👾Holograms, but virtual
    • 🔍How does Looking Glass Work?
    • 📸Virtual Camera
    • 🧊3D Design Guidelines
      • Lighting
      • Post-Processing
      • Scene Composition
      • Materials & Textures
      • Performance
    • 💡Quilts
      • 🎬Quilt Video Encoding
    • 💡Light Fields
      • ⚡Linear Light Field Capture
    • 📽️Filming a Looking Glass
  • Tutorials
    • 📱Running Looking Glass Displays with iOS Devices
    • Ⓜ️Capturing Light Fields in Maya
    • 🧑‍🔬Using ShaderToy with Looking Glass
    • 🎨Sculpting with Adobe Medium and Looking Glass
    • 🔍Turn Videogames Holographic with Refract
    • 🖐️Building with Leap Motion
  • Legacy
    • Legacy Hardware
      • 🔻Looking Glass 8.9"
      • 🔻Looking Glass 15.6"
      • 🔻Looking Glass 8K
      • 🔻Looking Glass 16"
      • 🔻Looking Glass 32"
      • 🔻Looking Glass Pro
    • Legacy Software
      • 📡3D Model Importer
        • 3D Model Importer App Guide
        • 3D Model Importer App Reference
      • 🎭Diorama
        • Change Log
      • 🎞️Depth Recorder
      • 📸Lightfield Photo App
      • 🍍Looking Glass Core Overview
      • 🍽️Looking Glass Core SDK
        • C API Overview
          • HoloPlayCore.h
            • State Functions
            • General-Query-Functions
            • Device-Query-Functions
          • libHoloPlayCore.h
          • HoloPlayShaders.h
      • 🔰Looking Glass Core JS
        • API
          • HoloPlayCore.Client
          • HoloPlayCore.Message
          • HoloPlay Service Related
          • examples
  • 💬Contact Us
  • 🛠️FAQ & Troubleshooting
Powered by GitBook

Follow us

  • Twitter
  • Instagram
  • LinkedIn
On this page
  • Fields & Properties
  • string FileName
  • OutputFolder FolderPath
  • int TakeNumber
  • QuiltCaptureMode CaptureMode
  • bool RecordOnStart
  • bool ExitPlayModeOnStop
  • int StartFrame
  • int EndFrame
  • float StartTime
  • float EndTime
  • VideoPlayer SyncedVideoPlayer
  • QuiltRecordingPreset RecordingPreset
  • QuiltRecordingSettings RecordingSettings
  • QuiltScreenshotPreset ScreenshotPreset
  • QuiltCaptureOverrideSettings ScreenshotSettings
  • QuiltRecordingSettings CustomRecordingSettings
  • QuiltCaptureOverrideSettings CustomScreenshotSettings
  • Methods
  • ScreenshotProgress Screenshot2D(bool writePNGMetadata = true)
  • ScreenshotProgress Screenshot2D(string outputFilePath, bool writePNGMetadata = true)
  • ScreenshotProgress Screenshot3D(bool writePNGMetadata = true)
  • ScreenshotProgress Screenshot3D(string outputFilePath, bool writePNGMetadata = true)
  • void StartRecording()
  • void StartRecording(string outputFilePath)
  • void PauseRecording()
  • void ResumeRecording()
  • void StopRecording()

Was this helpful?

  1. Software
  2. Unity
  3. Script Reference

QuiltCapture.cs

Provides a way to record quilt videos from within Unity scenes.

Fields & Properties

string FileName

File name of the output video. If it's empty, it will be set to the default (see QuiltCapture.DefaultFileName).

OutputFolder FolderPath

The path to the folder where the Recorder saves the output files.

int TakeNumber

The key name corresponding to the take number value stored in LKGPlayerPrefs.

QuiltCaptureMode CaptureMode

Manual: Use the “Record” and “Stop” buttons during Play mode.

Frame Interval: Set Start and End frames.

Time Interval: Set Start and End times (seconds).

Clip Length: Select a Video Player with the “Synced Video” field. Upon play, Quilt Capture will start and stop a recording to fit the beginning and end of the video clip.

Single Frame: Save a single frame as .png.

bool RecordOnStart

Whether the recording begins once the scene plays (only used when CaptureMode is set to Manual).

bool ExitPlayModeOnStop

When set to true, play mode will exit when the recording is stopped.

int StartFrame

Which frame should the recording start (only used when CaptureMode is set to Frame Interval).

int EndFrame

Which frame should the recording end (only used when CaptureMode is set to Frame Interval).

float StartTime

When the recording should start, in seconds (only used when CaptureMode is set to Time Interval).

float EndTime

When the recording should start, in seconds (only used when CaptureMode is set to Time Interval).

VideoPlayer SyncedVideoPlayer

Set this to reference a VideoPlayer if you wish to align the time values of this recording to the time values of the media playback. This also finishes the recording when the referenced VideoPlayer finishes.

QuiltRecordingPreset RecordingPreset

Determines the settings for output quilt videos. Selects from a collection of quilt and codec presets based on device and quality. Only used when CaptureMode is NOT set to Single Frame (Screenshot).

QuiltRecordingSettings RecordingSettings

The settings that will be used for recordings.

The aspect returned is always greater than zero, substituted using the same logic as HologramCamera.Aspect for values less than or equal to zero. Only used when CaptureMode is NOT set to Single Frame (Screenshot).

QuiltScreenshotPreset ScreenshotPreset

Determines the settings for output quilts for screenshots. Selects from a collection of quilt presets based on device. Only used when CaptureMode is set to Single Frame (Screenshot).

QuiltCaptureOverrideSettings ScreenshotSettings

The settings that will be used for screenshots.

The aspect returned is always greater than zero, substituted using the same logic as HologramCamera.Aspect for values less than or equal to zero.

QuiltRecordingSettings CustomRecordingSettings

The settings that will be used for recordings when RecordingPreset is set to QuiltRecordingPreset.Custom. The aspect returned is always greater than zero, substituted using the same logic as HologramCamera.Aspect for values less than or equal to zero.

QuiltCaptureOverrideSettings CustomScreenshotSettings

A collection of settings that may be applied to single frame capture/screenshots (only used when ScreenshotPreset is set to Custom)

Methods

ScreenshotProgress Screenshot2D(bool writePNGMetadata = true)

Take a screenshot of what is displayed in the center position of the Hologram Camera capture range. Optional parameter to encode metadata specifying that the image was captured with the Looking Glass Unity plugin.

ScreenshotProgress Screenshot2D(string outputFilePath, bool writePNGMetadata = true)

Same as above, but saving to a specific file path. Optional parameter to encode metadata specifying that the image was captured with the Looking Glass Unity plugin.

ScreenshotProgress Screenshot3D(bool writePNGMetadata = true)

Take a quilt screenshot of what is displayed in the Hologram Camera. Optional parameter to encode metadata specifying that the image was captured with the Looking Glass Unity plugin.

ScreenshotProgress Screenshot3D(string outputFilePath, bool writePNGMetadata = true)

Same as above, but saving to a specific file path. Optional parameter to encode metadata specifying that the image was captured with the Looking Glass Unity plugin.

void StartRecording()

Start recording.

void StartRecording(string outputFilePath)

Same as above, setting the output file to outputFilePath.

void PauseRecording()

Pause recording.

void ResumeRecording()

Resume (unpause) recording.

void StopRecording()

Stop (and save) recording.

PreviousLKGDisplaySystem.csNextCursor3D.cs

Last updated 4 months ago

Was this helpful?

🔌