- Home /
Question by
FortisInvictus · Nov 16, 2016 at 08:20 AM ·
android buildtextassetobb
TextAsset is null on some Andorid devices
I have txt and json files in my project. They are in folder Assets/Resources. They are loaded to game using Resources.Load():
var config = Resources.Load(name) as TextAsset;
if (!config)
{
Debug.Log("Config is NULL!");
}
else
{
Debug.Log(config.text);
}
return config.text;
On some devices, which are on Android 6.0.1, Resources.Load() returns null only when build is split to apk + obb, but if it is all packed to apk - works fine.
What could be problem with?
Thanks!
Comment
Your answer

Follow this Question
Related Questions
OBB file not being loaded 0 Answers
Oculus Go OBB Expansion File Crashes App when Loading Second Scene 0 Answers
Understanding Split Binaries / OBB downloader / overcoming 50MB limit for Google Play Stores 0 Answers
Apk works only full, when .obb scene gets messy 2 Answers
apk +obb issue, the first scene is messy and the rest of the scenes can't load ! 0 Answers