Modular 3D Text
  • ✉️Contact Support
  • ⭐Read me first
  • Introduction
    • ⚡Namespace
    • ⚡Assembly Definition
    • ⚡Scripting define symbol
    • 3D UI for XR
      • Internal documentation
  • Text
    • Modular 3D Text
      • Script documentation
        • UpdateText
        • MeshPostProcess
        • Internal Documentation
    • Text Updater
    • Fonts
      • Creating fonts
        • Troubleshoot
      • Letter
  • Input
    • Button/Key
      • Button Input System
      • Button Input Processor
    • Mouse/Touch
      • Raycast Selector
      • Raycast Input Processor
    • Troubleshoot
  • Modules
    • Modules
  • UI
    • List
      • Script documentation
    • Button
      • Script documentation
    • Toggle
      • Script documentation
    • Slider
      • Script documentation
        • UpdateValue
        • IncreaseValue
        • DecreaseValue
      • SliderHandle
    • Input Field
      • Script documentation
        • UpdateText
        • ContentType
    • Horizontal Selector
      • Script documentation
  • Layout System
  • Modules
  • Package Importer
  • Utility
    • UI States
    • Asset Settings
  • Version History
Powered by GitBook
On this page

Was this helpful?

  1. Input
  2. Mouse/Touch

Raycast Selector

This component is used to cast a ray from camera to interact with 3D UI Elements. Handles the logic part only. Not the input part.

The script controls the logic of how the input should be handled, so, if you would like to handle input system yourself, call the appropriate methods below.

RaycastCheck (Ray ray)

Recieves ray and returns what was hit.

PressTarget (Transform hit)

SelectTarget (Transform hit)

UnselectTarget (Transform hit)

Dragging (Transform hit, vector3 cursorPosition)

Dragging slider/button.

DragEnded (Transform hit, vector3 cursorPosition)

End of dragging slider/button.

PreviousMouse/TouchNextRaycast Input Processor

Last updated 2 years ago

Was this helpful?