Give Page Feedback | API

Secondary Non Components - Cell String

The CellString class is a special class primarily used to construct Asset Chunk names for Streamable Grid Cells programmatically, using the Cell's row, column, and layer indices as well as the chunk index of the Asset Chunk. It is also capable of reverse engineering this data from existing Asset Chunk names, which can be very useful.

A single Cell String object can be used to generate Asset Chunks for all chunks and cells on a Streamable Grid. Once created, the Cell String is tied to that Streamable Grid, however you can update it to be used with a different Streamable Grid using the UpdateCellString method.

You can change which Cell and Chunk the Cell String is currently set to using the MatchStringToCell method. This updates the ChunkName and ChunkLoadKey properties. The ChunkName is the name of the Asset Chunk (without extensions or other prepended data), while the ChunkLoadKey is the string value that can be used to load the Asset Chunk (which makes use of Prepended and Appended data), which will usually be done by a Chunk Streamer.

To reverse engineer the row, column, layer, and chunk index from an Asset Chunk name, use the TryGetCellDataFromChunkNamemethod.