Adds screenshots

This commit is contained in:
Momo the Monster
2023-02-15 22:45:47 -08:00
committed by GitHub
parent 8d6ee68829
commit d851f32025

View File

@@ -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
![image](https://user-images.githubusercontent.com/737888/219288424-78c3940a-3281-4f51-8d24-c34168c38444.png)
Scene File: `Assets/_Project/Gallery`
This scene demonstrates a RemoteImageFrame which loads images from a web server at runtime.
### TheFrame
![image](https://user-images.githubusercontent.com/737888/219288603-2fc2753b-27a1-4f61-ad22-a51df527907d.png)
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.
![image](https://user-images.githubusercontent.com/737888/219288738-ace09705-18d4-4f8e-bb45-792ff662bf7b.png)
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).