Skip to content

01 • Economy — Overlay Scene

This scene is dedicated to the Economy sample overlay.

It exists to let you run and validate economy behaviour in isolation — without building any game UI, controllers, or gameplay systems.

If you want a quick, runnable reference for how to call the Economy services correctly, this is the scene to use.


🧩 Overlay in this Scene

EconomyDemoOverlay (Sample Overlay)

This scene contains one overlay only.

Purpose:
A minimal, runnable sample overlay for validating economy flows.

Characteristics: - Currency is required - Inventory is optional (IItemStore may be null) - Uses public Economy abstractions via :contentReference[oaicite:1]{index=1} - Calls real service flows (Buy, Sell, Craft, Reward) through interfaces - Plain OnGUI UI for clarity and low overhead

Use this overlay when: - You want to quickly run and test economy flows - You are validating configuration or policy behaviour - You want a clean reference for correct service usage

This overlay is intended to be copied, modified, or removed in real projects.


🔍 Where is the Teachable Panel?

The guided Teachable Panel lives in a separate integration scene:

  • 01 — Economy With Inventory (requires the Inventory SKU)

That version: - Uses TeachablePanelBase - Expands Buy / Sell / Craft / Reward into explicit steps - Demonstrates preflight and rollback behaviour - Includes force-fail toggles for learning and debugging

Teachable panels are development tools and should not be shipped in production builds.

If you are running Economy without Inventory, this overlay scene is the recommended reference.


  1. Open this scene and run EconomyDemoOverlay
  2. Confirm currency and (optional) inventory flows behave as expected

  3. If you need deeper insight:

  4. Open the Economy Teachable scene
  5. Use the teachable overlay to inspect rollback and failure paths

  6. Build your own UI using the same abstractions shown here


🧠 Notes

  • This scene intentionally contains no teaching UI
  • It is designed to stay lightweight and runnable
  • The core service semantics should match between this sample overlay and the teachable integration scene; if results differ for the same inputs, treat it as a bug.

📁 Scene Details

Overlay: EconomyDemoOverlay
Scene Path: Assets/RevFramework/Runtime/Systems/Economy/Samples/Scenes/02_Economy_Overlay/