Scene Context
Scene Context allows easy access to app managers and scene elements. All the logic to modify, edit, display, create spritesheet or lora for vrms rest within these managers, and using Scene Context is an easy way to fetch all the logic:
Managers
-
characterManagerThis is is the most important manager, with it, you can load manifests and add or remove traits, download current selection etc. All the options can be found withinCharacterManagerclass docs. -
animationManagerlookAtManagerBorn fromcharacterManagerthis classes allows to set wether the character follows the mouse, and apply animations to current loaded character. -
loraDataGeneratorallows access to functions to create lora data with existing loraManifests. -
spriteAtlasGeneratorallows access to functions to create sprites, spritesheets and gifs with a given manifest or directly providing the required parameters for the functions.
Scene Functions
-
sceneElementsall elements that are not part of the current selected character. Cane be displayed or hidden withshowEnvironmentModels(display)function -
scenescene containingsceneElementsand current character fromcharacterManager -
cameracamera that renders the main scene. -
controlscamera controls, you can get this to enable or disable.
Utils
-
manifestcharacter manifest that has all manifests locations for the character selection. -
debugModemode that allows to see on wireframe and with a dark background, can be toggled withtoggleDebugMode(isDebug)function. -
moveCamera(value)moves the camera to target position (value) with a smooth movement.