Skip to content

useScene()

Create a new empty scene with the useScene composable.

Usage

This function sets up an empty 3D scene, which you can then populate with objects, lights, and other elements.

Here’s a straightforward way to initialize a new scene:

js
import { scene } from '@heyokajs/nuxt'

const scene = useScene()