mirror of
https://github.com/MrUnknownDE/examples-image-loading.git
synced 2026-04-16 05:13:51 +02:00
Adds screenshots
This commit is contained in:
@@ -7,12 +7,17 @@ This is a WIP Unity Example Project that demonstrates some ways that remote imag
|
||||
Clone or Download this project and open it up in Unity 2019.4.31f1.
|
||||
|
||||
## Gallery Example
|
||||
|
||||

|
||||
|
||||
Scene File: `Assets/_Project/Gallery`
|
||||
|
||||
This scene demonstrates a RemoteImageFrame which loads images from a web server at runtime.
|
||||
|
||||
### TheFrame
|
||||
|
||||

|
||||
|
||||
TheFrame is a GameObject with a couple of important pieces:
|
||||
* SlideshowFrame UdonBehaviour to load the images and captions from a web server.
|
||||
* Mesh object to render the frame.
|
||||
@@ -23,6 +28,8 @@ TheFrame is a GameObject with a couple of important pieces:
|
||||
|
||||
This UdonBehaviour has all of the logic to download the images and captions from a web server.
|
||||
|
||||

|
||||
|
||||
It has these public variables:
|
||||
* Rgb Url - an array of all the `VRCUrls` for the images to download.
|
||||
* String Url - a single `VRCUrl` where the caption text can be downloaded.
|
||||
@@ -46,4 +53,4 @@ The basic logic flow of the script is this:
|
||||
|
||||
## Using GitHub to Host the Images and Captions
|
||||
|
||||
This repo publishes to [GitHub Pages](https://pages.github.com/) for free hosting of the images and captions. When the files in the "Web" directory are edited, the website is re-published. As long as the filenames stay the same (images are 1.jpg, 2.jpg, etc.) - the URLs in the world will point to the newly published files. Republishing happens automatically through [an included GitHub Action](https://github.com/vrchat-community/examples-image-loading/actions/workflows/static.yml).
|
||||
This repo publishes to [GitHub Pages](https://pages.github.com/) for free hosting of the images and captions. When the files in the "Web" directory are edited, the website is re-published. As long as the filenames stay the same (images are 1.jpg, 2.jpg, etc.) - the URLs in the world will point to the newly published files. Republishing happens automatically through [an included GitHub Action](https://github.com/vrchat-community/examples-image-loading/actions/workflows/static.yml).
|
||||
|
||||
Reference in New Issue
Block a user