Methods
getAtom(id) → {Atom}
Gets one atom in the scene
Parameters:
Name | Type | Description |
---|---|---|
id | string | The atom's name |
- Source
Returns:
- Type:
- Atom
getAtomIds() → {Array.<string>}
Gets a list of all atom IDs in the scene
- Source
Returns:
- Type:
- Array.<string>
getAtoms() → {Array.<Atom>}
Gets a list of all atoms in the scene
- Source
Returns:
- Type:
- Array.<Atom>
getAudioClip(type, category, clip) → {AudioClip}
Returns an audio clip that was created in the scene audio tab
Parameters:
Name | Type | Description |
---|---|---|
type | string | Either "Embedded" (built-in) or "URL" (custom) |
category | string | "web" if the type is "URL" |
clip | string | The audio clip name |
- Source
Returns:
- Type:
- AudioClip