-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
# External Content | ||
Not all content needs to be packaged in the main build and loaded right at the start. | ||
Downloading and spawning content on demand is a good practice to lower the initial load time. | ||
|
||
## URL parameters | ||
This sample also showcases how to read and set URL parameters. Your URL can contain a link to remote assets like so: | ||
`?model={URL}` | ||
|
||
Concrete example would be like so: | ||
https://engine.needle.tools/samples-uploads/dynamic-content/?model=https%3A%2F%2Fraw.githubusercontent.com%2FKhronosGroup%2FglTF-Sample-Models%2Fmaster%2F2.0%2FDamagedHelmet%2FglTF-Embedded%2FDamagedHelmet.gltf | ||
|
||
The inner URLs should be encoded, you can read more [here](<https://www.w3schools.com/tags/ref_urlencode.ASP>). | ||
# External Content | ||
This scene shows examples of how to load 3D models, textures or images from external URLs. |