Skip to content

Instantly share code, notes, and snippets.

@truedat101
Created December 19, 2025 21:34
Show Gist options
  • Select an option

  • Save truedat101/d9836e1cb5b52825c29d8e1bff00c62d to your computer and use it in GitHub Desktop.

Select an option

Save truedat101/d9836e1cb5b52825c29d8e1bff00c62d to your computer and use it in GitHub Desktop.
Lens Studio Sprite Animation Sheets
From reddit: https://www.reddit.com/r/Spectacles/comments/1pqe456/comment/nuxh5ba/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
So I think what you are looking for is the ability to handle a sprite sheet.
Think of a sprite sheet like a film strip laid out in a grid. Instead of loading dozens of separate files, the game loads one big image and just "scrolls" through parts of the images.
For example:
Frame 0: Row 0, Col 0
Frame 1: Row 0, Col 1
Frame 2: Row 0, Col 2
Once you hit the end of the first row, it "carriages returns" to the next:
Frame 3 (on a 3-wide grid): Row 1, Col 0
You can achieve something like this with shaders in Lens Studio and there is actually pre-made node for you to utilize.
Steps:
Create empty shader.
Copy the shader graph as shown below.
Create a new material and attach the shader.
Assign the material to an image component.
Define the number of rows and columns there are in your single image.
Change the frame value. This value should go from 0 to the number of (rows * columns) -1. To scrub through all of the frames
Comment Image
You're capped at a 2k sheet, more frames mean a lower resolution for each one. You’re essentially trading detail for animation length to stay under that 2048px limit. You can create more than a single sprite sheet to bump the resolution but then you will need to manage these additional images
another useful resource (dated), item 3: https://steemit.com/programming/@orangeflash81/quick-fire-tips-for-snapchat-s-lens-studio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment