Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: NinjaX on November 20, 2018, 12:03:08 PM
-
Hello, I was wondering if there is a Playerprefs for a Color variable and if there isn't any suggestions on how to go about saving A color variable ?
TY
-
Hi,
use ConvertStringToColor and ConvertColortoString, then you can save color as regular strings in playerprefs or anywhere else.
Bye,
Jean
-
Thank you so much Jean, this is what I figured also.
May I ask, I think I saw somewhere that strings can be a performance issue is that a thing or am I just tripping, sorry I figured ide ask someone with experience just to be sure...
-
Hi.
strings should not give performance issues.
Things like create/destroy are heavy on performance :)
-
TY so much :)
-
Hi,
Well, PlayerPrefs is a performance issue to begin with. So use saving and loading ONLY when required and not within the game loop, only inside menus or after the game is done or loading.
Bye,
Jean