Skip to main content

STRUCT

MeshUpdateInfo

public struct MeshUpdateInfo

Information about mesh chunk updates from live meshing operations.

Returned by ArdkMeshingSession.updatedMeshInfos() to indicate which mesh chunks have been modified or removed since the last update.

Properties​

ids​

public var ids: UnsafeBufferPointer\<Int64\>

Array of all mesh chunk IDs.

When a chunk is removed from the mesh, it will no longer be present in this array. The application should keep track of its current mesh chunk IDs to determine when a chunk has been removed.

updated​

public var updated: UnsafeBufferPointer\<UInt8\>

Array indicating whether each chunk was updated or removed.

For each corresponding ID in ids, this array indicates:

  • Non-zero value: The chunk has been updated since the last call to meshDataById. Call meshDataById to read the latest mesh data. Calling meshDataById will reset the update status for that chunk to 0.
  • Zero value: The chunk has not been updated since the last call to meshDataById, so there is no need to read its mesh data.