Some Handy Code Snippets For Y'all

Options
Max
Max Posts: 26 🔥
edited June 2022 in Programming #1

Hi!

I'm sharing some of my code snippets in this git (https://github.com/max-van-leeuwen/SnapLensStudio-CodeSnippets), feel free to use them!
There are example projects for all of them, and at the top of the script there is more information commented.

Some examples of what you can find there:

  • Mesh Copy, this reads all the vertex information of a mesh and then rebuilds the mesh using MeshBuilder.
  • Texture Sampler, a function which you simply give a texture and a screen position and it returns the color at that pixel.
  • VoiceML Simple Transcribe, a lightweight setup to instantly get the user's voice transcription!
  • Portal, an easy way to make one-way portals that the user can walk through!

Comments