Showing the changes to script-archive/example/scripts/includeExample.js (1 of 401 files). Show all
Unified · Split
| @@ -0,0 +1,19 @@ | ||
| 1 | +// | |
| 2 | +// includeExample.js | |
| 3 | +// examples | |
| 4 | +// | |
| 5 | +// Created by Brad Hefta-Gaub on 3/24/14 | |
| 6 | +// Copyright 2013 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// This is an example script that demonstrates use of the Script.include() feature | |
| 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 | +// You can include scripts from URLs | |
| 15 | +Script.include("http://public.highfidelity.io/scripts/lookWithTouch.js"); | |
| 16 | + | |
| 17 | +// You can also include scripts that are relative to the current script | |
| 18 | +//Script.include("../../editEntities.js"); | |
| 19 | +//Script.include("../../examples/selectAudioDevice.js"); | |