Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

get_persistentDataPath can only be called from the main thread ?

$
0
0
Im getting this error:

ArgumentException: get_persistentDataPath can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
levelClass..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for levelClass

I made a scene where the player can...

get_persistentDataPath can only be called from the main thread ?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>