sim.persistentDataWrite

Deprecated. See sim.writeCustomBufferData instead.

Synopsis

sim.persistentDataWrite(string dataTag, string/bytes dataValue, int options = 0) sim.persistentDataWrite(string dataTag, buffer dataValue, int options = 0)

Arguments

  • dataTag: name of the data
  • dataValue: content of the data (which may contain any value, including embedded zeros). If dataValue is an empty string, then the data is cleared (if present).
  • options: bit-coded:
    • bit0 is set (1): data is also stored on file ("system/persistentData.dat"), and automatically reloaded next time CoppeliaSim start


See also: