Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

standard anti memory hack load save data using playerprefs

$
0
0
Hi all. I want to save my vital variables (gems,coins,level,xp , etc) into a file using playerprefs. My file has been encrypted.(AES) it is ok. I load my data in start only one time and initialize the variables. My question is about memory hack. I know we can define two variables like gems_visible and real gems variable that has the fake value(for example gems_visible-123) and when a user changes gems_visible we can understand. but do we need to do it to prevent memory hack? can we load data from playerprefs whenever we need to them rather than only in start? So we don't need to define extra variables to prevent memory hack. we only need to compare the variable(maybe changed (hack)) with saved variable in playerprefs file and recognize hack. Is it true and standard method? Loading data in start and use extra variables vs loading data whenever we need to compare variables with real values in playerprefs(not only in start) any help appreciated.

Viewing all articles
Browse latest Browse all 1333

Trending Articles