Scene

The Virt-A-Mate scene root

Constructor

new Scene()

Methods

getAtom(id) → {Atom}

Gets one atom in the scene

Parameters:
NameTypeDescription
idstring

The atom's name

Returns:
Type: 
Atom

getAtomIds() → {Array.<string>}

Gets a list of all atom IDs in the scene

Returns:
Type: 
Array.<string>

getAtoms() → {Array.<Atom>}

Gets a list of all atoms in the scene

Returns:
Type: 
Array.<Atom>

getAudioClip(type, category, clip) → {AudioClip}

Returns an audio clip that was created in the scene audio tab

Parameters:
NameTypeDescription
typestring

Either "Embedded" (built-in) or "URL" (custom)

categorystring

"web" if the type is "URL"

clipstring

The audio clip name

Returns:
Type: 
AudioClip