playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Playmaker 1.9.1 Released!
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Playerprefs for a Color variable
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Playerprefs for a Color variable (Read 1639 times)
NinjaX
Full Member
Posts: 113
XCO is the ULTIMATE IOS Ninja!!
Playerprefs for a Color variable
«
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
Logged
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Playerprefs for a Color variable
«
Reply #1 on:
November 21, 2018, 01:34:24 AM »
Hi,
use ConvertStringToColor and ConvertColortoString, then you can save color as regular strings in playerprefs or anywhere else.
Bye,
Jean
Logged
NinjaX
Full Member
Posts: 113
XCO is the ULTIMATE IOS Ninja!!
Re: Playerprefs for a Color variable
«
Reply #2 on:
November 21, 2018, 11:03:12 AM »
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...
Logged
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!
djaydino
Administrator
Hero Member
Posts: 7616
Re: Playerprefs for a Color variable
«
Reply #3 on:
November 21, 2018, 04:57:35 PM »
Hi.
strings should not give performance issues.
Things like create/destroy are heavy on performance
Logged
Join the PlayMaker Discord Channel!
NinjaX
Full Member
Posts: 113
XCO is the ULTIMATE IOS Ninja!!
Re: Playerprefs for a Color variable
«
Reply #4 on:
November 21, 2018, 08:44:11 PM »
TY so much
Logged
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Playerprefs for a Color variable
«
Reply #5 on:
November 22, 2018, 01:21:52 AM »
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Playerprefs for a Color variable