Showing the changes to script-archive/example/scripts/settingsExample.js (1 of 401 files). Show all
Unified · Split
| @@ -0,0 +1,18 @@ | ||
| 1 | +// | |
| 2 | +// settingsExample.js | |
| 3 | +// examples | |
| 4 | +// | |
| 5 | +// Created by Brad Hefta-Gaub on 3/22/14 | |
| 6 | +// Copyright 2013 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// This is an example script that demonstrates use of the Menu object | |
| 9 | +// | |
| 10 | +// Distributed under the Apache License, Version 2.0. | |
| 11 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 12 | +// | |
| 13 | + | |
| 14 | +print("mySetting: " + Settings.getValue("mySetting")); | |
| 15 | +Settings.setValue("mySetting", "spam"); | |
| 16 | +print("mySetting: " + Settings.getValue("mySetting")); | |
| 17 | + | |
| 18 | +//Script.stop(); | |