sim.writeCustomBufferData

Adds or removes custom data to be stored and saved together with an object, the scene, the app, or the app's storage. If the data is attached to an object, then the sysCall_data callback function is called asynchronously for the simulation- or customization script attached to that object

Synopsis

sim.writeCustomBufferData(int objectHandle, string tagName, string/bytes data) sim.writeCustomBufferData(int objectHandle, string tagName, buffer data)

Arguments

  • objectHandle: handle of the object where you want to store your data, sim.handle_scene, sim.handle_app or sim.handle_appstorage
  • tagName: string that identifies the data. An empty string removes all custom data
  • data: your custom data. If empty, the current data under the specified dataName is removed


See also: