Skip to content

Teaching — Build Guards

This folder contains compile-time safety guards for RevFramework Teaching content.

These files exist to prevent accidental shipping of Teaching panels and demo helpers in Player builds.


Do Not Remove

Teaching panels are runtime MonoBehaviours used for learning and debugging. They intentionally live outside the Editor/ folder so they can run in Play Mode.

Because of that, safety is enforced at compile time, not via folder placement.


REV_TEACHABLES Build Guard

The file in this folder enforces the following rule:

Player builds must not be compiled with REV_TEACHABLES enabled.

If a Player build is attempted while REV_TEACHABLES is defined, the build will fail immediately with a clear compiler error.

This makes it impossible to accidentally ship Teaching content.

```csharp

if REV_TEACHABLES && !UNITY_EDITOR

error REV_TEACHABLES is enabled for a Player build. Disable REV_TEACHABLES before shipping.

endif