Scripting / Reference
Economy
Types in the ParelVR.Volt.Economy namespace.
VoltEconomy#
ParelVR.Volt.Economy.VoltEconomy static
The products of this world. A script can ask what the local player owns and can ask ParelVR to offer a purchase; ParelVR shows its own confirmation and handles the payment. A script can never complete a purchase by itself and never sees another player's purchases.
VoltEconomy properties#
True when purchases are available in this build of ParelVR.
VoltEconomy methods#
A product of this world, or null.
Every product of this world.
True when a purchase of the product was tried this session and failed.
True once the local player's purchase of a product went through.
Asks ParelVR to offer the product to the local player. OnPurchaseCompleted follows.
VoltProduct#
ParelVR.Volt.Economy.VoltProduct class
Something this world sells. A script sees what the player sees in the shop, never payment details.
VoltProduct properties#
Description shown in the shop.
Id of the product, as set in the SDK's Monetization tab.
True when the product can be bought more than once.
True when the local player owns the product.
Name shown in the shop.
The price as ParelVR shows it to this player, in their own currency.
