Skip to content

Instantly share code, notes, and snippets.

View harrybanda's full-sized avatar

Harry Banda harrybanda

View GitHub Profile
@positlabs
positlabs / LensStudioDebug.js
Last active January 25, 2023 09:41
Script debugging functions for Lens Studio
/*
Include this script at the top of the scene to enable global commands
Usage:
global.showProps(object)
global.showScene(scene)
global.showSceneObject(sceneObject)
global.showComponent(component)
Original by @robertlugg
https://gist.github.com/robertlugg/a5161200998092ddf69cb7393f7efcc0
@thelucre
thelucre / AutoRotate.js
Created March 9, 2019 00:19
AutoRotate script for Snapchat Lens Studio
// -----JS CODE-----
//@input vec3 Rotation
//@input float Speed
// Equivalent to GameObject
var object = script.getSceneObject();
// Just like Unity Transform!
var transform = script.getTransform();