Skip to main content

Subscribers 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.

Subscribers In Instance is a prefab that lists the subscribers or non-subscribers who are currently in the instance via a text console.

How to Import

  1. Open the Example Central Window from the window from the Unity Editor Menu under "VRChat SDK > 🏠 Example Central"
  2. If you haven't enabled Creator Economy examples yet:
    1. Press the ⚙️ gear icon in the Example Central window to open the Example Central settings.
    2. Enable "Show Creator Economy Examples".
  3. Select this prefab in Example Central.
  4. Press the "Import" button to import the example assets into your project.
Prefabs Included
  • SubscribersInInstancePrefab: A prefab with a console that shows all the subscribers in the instance.
  • NonSubscribersInInstancePrefab: A prefab with a console that shows all the non-subscribers 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 subscribe to this product.

Once you've created a purchasable product:

  1. Drag the SubscribersInInstance prefab into your scene.

EventPrefabtoScene

  1. In the inspector, locate the Udon Product variable. Click on the circle button and replace the example file with your own product.

ProductAdd

  1. If you'd like the console to show non-subs instead, you can check List Non Subscribers Instead, or use the NonSubscribersInInstance prefab. Otherwise, leave this unchecked.

NonSubsvsSubs

  1. Run Build & Test!

Inspector Parameters

  • Udon Product - The Udon Product that counts as being a subscriber when owned.
  • Subscribers Text - The textfield that will be updated with the list of subscribers. Each subscriber will be on a new line.
  • List Non Subscribers Instead - If true, all the players who don't own the product will be listed instead.