Can't find class on android

lucota90
Wed, 03 May 2017 20:42:28 +0000
Mobile

I’m having an issue when playing my game on android gearVR, the package completes without errors and with some irrelevant warnings (about stuff thats not being used). Im testing a feature which reads a Json file that contains actors described in it and then spawns them. The problem comes in the following process:

starts app in android on level ‘X’

ends level ‘X’ after conditions are met

menu with level selection appears

Level selected (when the level is selected, a Uobject gets the correspondent json file and parses it to spawn the actors)

after the file is retrieved, A emptylevel is opened and that UObject starts to spawn the actors from the json file
→ This is where the problem occurs, in my test, the level retrieved is the same from before (level ‘X’, so the classes should all be there, since the game already starts with them instantiated) but only 2 classes are found, with the others the function FindObject function returns null.

This process works perfectly on the Editor and I already printed the json parsing results enought to know that it gets the info correctly (all 15 actors are there, but only 2 classes are found).
I also tried saving the class path in the json file to retrieve it using this solution:

Unreal Engine Forums – 14 Apr 20

A new, community-hosted Unreal Engine Wiki

After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Reading time: 1 mins 🕑 Likes: 14 ❤

but same story, works on editor and not in android.

Any ideas of what could be?

4 posts - 1 participant