raymond
Junior Member

Posts: 50
Posts: 50
|
Post by raymond on May 21, 2018 2:10:44 GMT
Hello,
I get an Argument Exception when I preview my game and then 2 more of the same Argument Exceptions when I stop the game.
.
|
|
|
Post by DarkTonic Dev on May 21, 2018 3:22:43 GMT
Do you have 2 World Variables with the same name? I've never seen this error.
|
|
raymond
Junior Member

Posts: 50
Posts: 50
|
Post by raymond on May 21, 2018 6:47:38 GMT
No I Don't.
My Game Still Works But I Would Still Like To Get Rid Of This Argument Exception.
|
|
|
Post by DarkTonic Dev on May 21, 2018 7:34:17 GMT
I saw a couple times (very very rare) that the text file gets corrupted and needs to be deleted. That's probably what's going on here.
It's in: Application.persistentDataPath + "/PlayerPrefs.txt"
I'm not sure where Application.persistentDataPath maps to but you can log that to the Console and find out. Delete that file and you should be good to go.
|
|
raymond
Junior Member

Posts: 50
Posts: 50
|
Post by raymond on May 22, 2018 2:39:58 GMT
Worked Like A Charm.
Thank You!
|
|
|
Post by DarkTonic Dev on May 22, 2018 16:55:43 GMT
No problem.
|
|