User Guide
184 CHAPTER 14
An Atmosphere environment with the fog script applied. The amount of fog can be set by adjusting the script’s properties in
the Inspector. Fog can be enabled in the scene simply by adding the fog.js script.
Editing Scripts
The Inspector palette includes a fi eld that holds the path to the imported script. You can set the script’s path by
clicking the Browse for JavaScript File button to the right of the JavaScript URL.
Clicking the Edit button will open this script in a text editor. The text editor has no menu bar options, but you can
use the right-click Contextual menu to Cut, Copy, Paste and Delete selections of text and bring up the Save and Save
As dialogs. To learn more about editing scripts, see Appendix D, “JavaScript API Documentation.”
i
The scripts that ship with Atmosphere include a comment at the top of the script that explains what the script does
and how to use it. When you create your own scripts, it’s a very good idea to include comments that will help you
remember what the script does.










