Skip to content

🧪 Economy — Samples

This folder contains lightweight sample support for Economy demos and teaching content.

These files are not Hostile Consumer panels. They exist to provide simple sample helpers, serializable demo specs, and lightweight runtime validation.


What’s in this folder

EconomyUiSpecs

Serializable, inspector-friendly sample data used by Economy demos and teaching panels.

Includes:

  • ChargeLineSpec
  • ItemLineSpec
  • PriceBundleSpec

These convert inspector data into runtime Economy values such as:

  • ChargeLine
  • ItemLine
  • PriceBundle

What this folder is for

Use this folder when you want:

  • shared sample data structures
  • simple demo authoring helpers
  • inspector-friendly Economy inputs
  • lightweight support code used by scenes, samples, or teachables

What this folder is not

This folder is not:

  • the main teachable panel surface
  • a production gameplay UI framework
  • a runtime architecture requirement
  • an integration layer by itself

The code here exists for demonstration and authoring support only.


Inventory support

Inventory-backed Economy examples live under:

Integrations/Economy/InventoryIntegration

Those examples use:

EconomyInventoryBootstrap

Currency-only examples use:

EconomyBootstrap

Relationship to Teachables

Teaching panels provide the guided learning surface.

Samples provide lightweight support data and demo helpers that those panels or scenes may reuse.


Notes

  • Uses public Economy data types
  • Avoids internal runtime dependencies as supported seams
  • Safe to remove if you do not want sample/demo support content
  • Best treated as reference/demo support code, not shipped game UI