Open Group Page
OpenGroupPage is a prefab that makes it easier for users to access purchasable CE listings. Use it to create buttons that open group pages or specific listings.
How to Import
- Download the Unity package directly by clicking here.
- Make sure your project is using the World SDK
3.5.0
or newer. - Import the Unity package into your project.
- Drag your chosen prefab into your scene. The options are:
Prefabs included
- OpenGroupPagePrefab: Includes a button that opens a group page. Also includes a text description.
- OpenGroupPageSimplePrefab: Includes a button that opens a group page. Does not include a text description.
- OpenListingPrefab: Includes a button to open to a listing page. Also includes a text description.
- OpenListingSimplePrefab: Includes a button to open to a listing page. Does not include a text description.
How to Use
For each prefab, you'll need to replace any ID with the ID of your own group or product.
- Select the chosen prefab in your Unity scene.
- For OpenGroupPage/OpenGroupPageSimple: Set the ID of the group that owns the product in the
Group ID
field in the inspector window.- Find your group ID by opening your group on the website and copying the ID in the address bar of your browser. For example:
grp_a4f791af-a167-4c91-b849-2e37e37f509a
. Any short code (i.e.EXAMPL.9920
) will not work.
- Find your group ID by opening your group on the website and copying the ID in the address bar of your browser. For example:
- For OpenListing/OpenListingSimple: Set the ID of the listing in the
Listing ID
field in the inspector window.- Find your listing ID by opening the listing section of your store and copying its ID.
Toggle the OpenToStorePage toggle on the prefab if you want to open to your store page directly. If unchecked, the button will open to your group page instead of directly to your store.
Run Build & Test!
Inspector Parameters
OpenGroupPage
Group ID
- The group ID of the group you want to open.Open To Store Page
- If true, will open the store page for the group instead of the group info page.
OpenListing
Listing ID
- The listing ID of the listing you want to open.