Example Prefabs
This information is only relevant to sellers with access to VRChat's Creator Economy SDK.
If you are interested in setting up a store in VRChat, please apply as a seller.
Example Prefabs allow world creators to use the Creator Economy quickly and easily without writing their own Udon scripts. The prefabs can be tweaked and customized to create a better experience for your supporters.
Many of the examples require knowledge on how to set up Udon products, which should be done before you proceed here. Head to our Getting Started with the Creator Economy SDK page to learn more.
Example | Description |
---|---|
Open Group Page | A button that opens a group page based on the assigned group ID. Enable Open To Store Page to open the store page instead, or use the OpenListingPrefab to directly open a store listing. |
Store Debug Logging | A screen for listing, debugging, and logging products in your world. |
Floating Overhead Buy Indicator | Spawns a floating prefab above players who own the assigned Udon product. |
Udon Product Toggle | Enables/Disables a Game Object if any player in the instance owns the assigned Udon product. Use the Local Only option if the local player must own the product. |
Subscribers In Instance | Shows a list of all subscribers that are currently in this instance. |
Subscribers Only Area | An area that only subscribers can enter or non-subscribers can't leave. Players who try to trespass are teleported away. |
Product Event Timed | A button that can only be pressed by players who own the assigned Udon product. Other players can see that they pressed the button. This is an example of OnProductEvent . |
Adding Prefabs
Each prefab shares the same starting steps:
-
Download the Unity package for the prefab you need, which can be found in the left sidebar.
-
Import the package into your Unity project.
- Drag the prefab into your scene.
And you're ready to customize! Browse our different prefabs in the left-hand sidebar to see what they do and how to customize them.