Class ToggleableModuleConfig
Base class for configs of leaf SDK modules that support a runtime kill-switch. Foundational modules others depend on (Firebase, which bootstraps Remote Config; Network, a dependency of IAP) extend MocaLib2ModuleConfig directly and are never gated off.
public abstract class ToggleableModuleConfig : MocaLib2ModuleConfig
- Inheritance
-
ToggleableModuleConfig
- Derived
- Inherited Members
Fields
- Enabled
Runtime kill-switch, controllable only from Remote Config — deliberately hidden from the Inspector so it isn't a per-asset developer knob. A module that's compiled in and enabled via MocaLib2Config defaults to
trueand runs normally; a Remote Config override for this config's RemoteConfigKey that sets{"Enabled": false}makes the caller skip initialization (and the module's methods then no-op). Hidden but serialized, so Resolve<T>(T, string)'sJsonUtility.FromJsonOverwriteoverlay can still write it.