This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { RectangleButton } from 'SpectaclesUIKit.lspkg/Scripts/Components/Button/RectangleButton'; | |
| import { SnapCloudRequirements } from './Examples/SnapCloudRequirements'; | |
| import { createClient } from 'SupabaseClient.lspkg/supabase-snapcloud'; | |
| @component | |
| export class UploadAssetToSupabase extends BaseScriptComponent { | |
| // Supabase Configuration - Centralized via SnapCloudRequirements | |
| @input | |
| @hint("Reference to SnapCloudRequirements for centralized Supabase configuration") | |
| public snapCloudRequirements: SnapCloudRequirements; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Import required modules | |
| const Gemini = require('Remote Service Gateway.lspkg/HostedExternal/Gemini').Gemini; | |
| const GeminiTypes = require('Remote Service Gateway.lspkg/HostedExternal/GeminiTypes'); | |
| @component | |
| export class GeminiExample extends BaseScriptComponent { | |
| private cameraRequest: any; | |
| private cameraTexture: Texture; | |
| private cameraTextureProvider: any; | |
| private isProcessing: boolean = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // INSTANTIATE | |
| // @typename Instantiator | |
| // @input Instantiator instantiator | |
| // @input Instantiator instantiator1 | |
| //@input Component.SceneObject sceneRoot | |
| //@input Component.SceneObject sceneRoot1 | |
| //@input Component.ScriptComponent prefabAccessorA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {SessionController} from "SpectaclesSyncKit.lspkg/Core/SessionController" | |
| import {StorageProperty} from "SpectaclesSyncKit.lspkg/Core/StorageProperty" | |
| import {SyncEntity} from "SpectaclesSyncKit.lspkg/Core/SyncEntity" | |
| @component | |
| export class GridControllerTS extends BaseScriptComponent { | |
| @input() | |
| showLogs: boolean = true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VISION OPEN AI | |
| import { Interactable } from "SpectaclesInteractionKit.lspkg/Components/Interaction/Interactable/Interactable"; | |
| import { InteractorEvent } from "SpectaclesInteractionKit.lspkg/Core/Interactor/InteractorEvent"; | |
| import { SIK } from "SpectaclesInteractionKit.lspkg/SIK"; | |
| import { TextToSpeechOpenAI } from "./TextToSpeechOpenAI"; | |
| @component | |
| export class VisionOpenAI extends BaseScriptComponent { | |
| @input textInput: Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| withAlpha, | |
| withoutAlpha, | |
| } from "SpectaclesInteractionKit.lspkg/Utils/color"; | |
| /** | |
| * Enhanced 3D Line component with smooth spline interpolation | |
| * Creates a 3D tube by extruding a circular cross-section along a path defined by scene objects. | |
| */ | |
| @component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| withAlpha, | |
| withoutAlpha, | |
| } from "SpectaclesInteractionKit.lspkg/Utils/color"; | |
| import InteractorLineRenderer, { | |
| VisualStyle, | |
| } from "SpectaclesInteractionKit.lspkg/Components/Interaction/InteractorLineVisual/InteractorLineRenderer"; | |
| /** | |
| * This class provides visual representation for a spline curve through a series of control points. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @component | |
| export class LeaderboardExample extends BaseScriptComponent { | |
| @input | |
| leaderboardModule: LeaderboardModule; | |
| @input | |
| textLogs: Text; | |
| private leaderboardInstance: any; | |
| private leaderboardName = 'EXAMPLE_LEADERBOARD'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This bypasses the interactable system | |
| let me know what you think | |
| remember that you need to set up the ray start and end | |
| you can create 2 scene objects and put them under the main camera | |
| 1. at 0,0,0 | |
| 2. at 0,0,-100 (forward) | |
| then assign a 3rd object that is the one that is instantiated on the hitPoint of the raycast | |
| remember that the geometry receiving the raycast needs to have a collider and a physics body | |
| if you want the receiver to not be dynamic uncheck the dynamic option so it won' react to physics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Import required modules | |
| const WorldQueryModule = require("LensStudio:WorldQueryModule"); | |
| const EPSILON = 0.01; | |
| /** | |
| * DirectionalWorldQuery | |
| * | |
| * A utility that performs world queries in a direction defined by two scene objects. | |
| * It can then project rays from a third object in that same direction. |
NewerOlder