Skip to content

max-van-leeuwen/SnapLensStudio-CodeSnippets

Repository files navigation

SnapLensStudio-CodeSnippets

Coding essentials for all your projects!
All scripts have a simple example project demonstrating how they work.


Contents

  • LSQuickScripts
    • My 'cheatsheet' collection of code snippets. I always have this in every project I do :)
  • Mesh Copy
    • Read all the vertex information of a mesh, and rebuild the mesh using MeshBuilder.
  • MeshBuilder Plane Generator
    • Generate a plane of custom density using MeshBuilder.
  • Simple SDF Collisions Update
    • Lightweight setup to get a mesh's SDF information in the VFX editor.
  • Texture Sample
    • Simple function that samples the color of a (live) texture at a coordinate.
  • Radial Menu Spectacles
    • A Radial Menu setup for the Spectacles
  • VoiceML Simple Transcribe
    • Lightweight setup to get the VoiceML transcription of the user's microphone.
  • Portal
    • Super simple way of making a portal out of a mesh. It calls your callback function when the user walks through it, and keeps track of whether you're inside or outside the portal world.
  • World Placement
    • Make an object follow the user's gaze, with nice animations. Useful for placing the scene in front of you in the Spectacles.
  • Smooth Follow
    • Make any 3D Transform or Number smoothly interpolate with only a couple lines of code.
  • Hand Tracking
    • A setup that makes pinch-detection super easy (and supports tap emulation in preview window)
  • Button
    • Drag-and-drop solution to make any visual into a tappable button!

About

Useful Lens Studio scripts!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published