Detailed Property Reference
Namespace: Canley.Utility.CSV.Standard
Class: CSVTable<T>
Definition
public CSVIdType idType { get; set; }-
Description: Determines how unique identifiers are generated when new records are created dynamically at runtime.
-
Workflow:
- Configuration: Evaluated when calling record creation methods within the table.
- Generation: Applies either a deterministic integer hash based on the record label or a randomized UUID hash depending on the active enum selection.
-
Returns:
CSVIdType- The identifier generation strategy enum (IntegerorUUID). -
Example:
public void ConfigureIdentifierStrategy(CSVTable<SaveDataRecord> saveTable)
{
saveTable.idType = CSVIdType.UUID;
Debug.Log(message: $"ID generation strategy updated to: {saveTable.idType}");
}TIP
Use
Integer(deterministic hash) for static master data tables so record IDs remain consistent across reloads, andUUIDfor player-generated save files where uniqueness is paramount.