@threlte/studio
useSpace
Examples
import { useSpace } from '@threlte/studio/extensions'
const space = useSpace()
// toggle the working space
space.toggleSpace()
// set the working space to local
space.setSpace('local')
// set the working space to world
space.setSpace('world')
// get the working space
console.log(space.space) // 'world'