I am trying to save colors out to an SQLite database with the SQLite kit and having difficulty loading the data back into a color.
When saving an FsmColor to the database it reads like this:
RGBA(R,G,B,A)
between brackets are the actual decimal numbers.
As this is a string I can't find a way to get it back to a color in unity (which I can then set back to the FsmColor)
The only way I can see of doing this is either to save each channel out as a float in a separate column in the database (but this creates 2 more columns that I would imagine has some sort of performance hit) or to manipulate the text to get the 3 values and then convert them to floats to finally combine them to a color.