55
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= The Library in the woods = | = The Library in the woods = | ||
[[File:Woods.jpg|1920px]] | [[File:Woods.jpg|1920px]] | ||
Line 21: | Line 18: | ||
VrChat uses the Unity game engine but restricts much of the functionality that it originally offers. Where you normally write C# scripts, VrChat wants you to use their Udon Graph editor, a non-scripting solution much like [https://en.wikipedia.org/wiki/Scratch_(programming_language) scratch], or U# which is still missing a full documentation, which I ended up using. But all of that restriction serves to protect and ensure that everyone has a good experience. | VrChat uses the Unity game engine but restricts much of the functionality that it originally offers. Where you normally write C# scripts, VrChat wants you to use their Udon Graph editor, a non-scripting solution much like [https://en.wikipedia.org/wiki/Scratch_(programming_language) scratch], or U# which is still missing a full documentation, which I ended up using. But all of that restriction serves to protect and ensure that everyone has a good experience. | ||
File:03b983d-pickup-isheld.png | [[File:03b983d-pickup-isheld.png|400px]] | ||
File:Screenshot 2023-02-26 225936.png | "UdonGraphEditor " | ||
'' | [[File:Screenshot 2023-02-26 225936.png|400px]] | ||
''U# program opend in VisualStudio'' | |||
To start building the little library, I had to make books first. And to make a real book, it has to be an object in the world that you can pick up, open, skim through, and read the actual content. (At least after my definition) | |||
After that I made many small experiments with all the features separated, to get to know them. | |||
''How do I make a GameObject pick-upable?'' --> Add a VrChat component that lets you do so. | |||
''How do I open a Book?'' --> Make an Animation of the book Opening, figure out how to know when the book is held by a player --> Access the previously mentioned VrChat component and get the information. | |||
''How do I put readable stuff inside the book?'' --> Place TextContainers inside the book that appears when the OpeningAnimation finishes. | |||
''How do I make the book so I can turn the pages and few the content on the next page?'' --> Get the input from the controller in the player's hands, which holds a book. Note which page is open, and which lines have to be displayed next. And execute! | |||
[[:File:2023-02-25_14-42-25_Trim.MP4]] | |||
And then bring it all together. |
edits