Skip to content

settings.clear()

jackcarey edited this page Jul 16, 2022 · 1 revision

Resets or clears all settings.

When called on Controller(), the .clear() method resets all settings to default. When called on a controller instance, it clears that controller's settings making it fall back to global settings.

Examples

// Global

// Resets all global settings to their defaults
Controller.globalSettings.clear();
// Per-controller

// Clears all settings on this controller, making it fall back to global
Controller.getController(0).settings.clear();
Clone this wiki locally