snapshot method

Uint8List snapshot()

Serializes the world's simulation state for a later restore, for rollback prediction and lag-compensation rewind. Handles stay valid across a snapshot/restore. Throws UnsupportedError unless supportsSnapshot.

Implementation

Uint8List snapshot() =>
    throw UnsupportedError('$backendName has no world snapshot');