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 & Properteis
  • RectTransform handle
  • RectTransform squareArea
  • Vector2 outputValues
  • bool isHovering
  • LookingGlass.Demos.XYSpotlight xySpotlight
  • Vector2 squareSize
  • bool isDragging
  • Vector3 originalScale
  • float scaleFactor

Was this helpful?

  1. Software
  2. Unity
  3. Script Reference
  4. iOS Sample Scene Scripts

XYSlider.cs

Implements a 2D slider UI element. Tracks user interactions and translates the slider position into normalized values.

Fields & Properteis

RectTransform handle

The draggable handle of the slider.

RectTransform squareArea

The slider's movement bounds.

Vector2 outputValues

Normalized output values in the range [-1, 1].

bool isHovering

Tracks whether the user is hovering over the slider.

LookingGlass.Demos.XYSpotlight xySpotlight

Reference to the spotlight controller.

Vector2 squareSize

Half the width and height of the slider's bounds.

bool isDragging

Tracks whether the handle is being dragged.

Vector3 originalScale

The initial scale of the slider handle.

float scaleFactor

Factor to scale the handle when it is being dragged.

PreviousChangeInteractionModality.csNextXYSpotlight.cs

Last updated 4 months ago

Was this helpful?

๐Ÿ”Œ