Product Owners In Instance
tip
Submit an application if you want to join the Creator Economy!
The page below is only relevant to sellers with access to VRChat's Creator Economy.
Product Owners In Instance is a prefab that lists the product owners or non-product owners who are currently in the instance via a text console.
How to Import
- Open the Example Central Window from the window from the Unity Editor Menu under "VRChat SDK > 🏠 Example Central"
- If you haven't enabled Creator Economy examples yet:
- Press the ⚙️ gear icon in the Example Central window to open the Example Central settings.
- Enable "Show Creator Economy Examples".
- Select this prefab in Example Central.
- Press the "Import" button to import the example assets into your project.
Prefabs Included
- ProductOwnersInInstancePrefab: A prefab with a console that shows all the product owners in the instance.
- NonProductOwnersInInstancePrefab: A prefab with a console that shows all the non-owners in the instance.
caution
If viewing the example scene, you'll also need the Open Group Page prefab. Otherwise, your project will be missing what it needs for a complete scene.
How to Use
For this (and most!) prefabs, you'll first need an UdonProduct to check for and a way for players to buy this product.
Once you've created a purchasable product:
- Drag the ProductOwnersInInstance prefab into your scene.
- In the inspector, locate the Udon Product variable. Click on the circle button and replace the example file with your own product.
- If you'd like the console to show non-owners instead, you can check List Non Product Owners Instead, or use the NonProductOwnersInInstance prefab. Otherwise, leave this unchecked.
- Run Build & Test!
Inspector Parameters
Udon Product
- The Udon Product which will be checked for ownership.Product Owners Text
- The textfield that will be updated with the list of product owners. Each product owner will be on a new line.List Non Product Owners Instead
- If true, all the players who don't own the product will be listed instead.