# controlP5 / ControlP5 / setAutoInitialization( )

name
  setAutoInitialization ( )

description
  autoInitialization can be very handy when it comes to initializing values, e.g. you load a set of controllers from an xml file, then the values that are attached to the controllers will be reset to its state saved in the xml file. to turn of auto intialization, call setAutoInitialization(false) right after initializing controlP5 and before creating any controller.

Syntax

      setAutoInitialization(theFlag);

parameters
  theFlag boolean

Returns
  None

Usage
  Web & Application

Related