Hi
So i’v been having problems in mobile with some array nodes, “find” and “set array elem”
I’v made some tests and this nodes work completely fine in pc but when I launch on mobile they simply don’t work.
Can some body tell me if had this problem too, or if can be fixed?
Can someone at least test them and tell me if had the same problem?
Hello Colatran,
What sort of issues are you seeing with these nodes on mobile? I tried setting up a small test that involves the following blueprint nodes and I received the same results on Windows as I did with Android.
This results in the correct outputs, with Find getting element 2 and 3, where Element 2 is set to 2 by default and element 3 is set to 3 but is being changed to 10 by using Set Array Elem.
I’v made the same test as you did and worked fine,you did with a int array, but it looks like that only hapens when it’s a text array.
Can you test it?
I’ve reproduced the issue, where doing that same setup with a Text array has both of the Find functions return -1 but it seems that this happens in any cooked build, not just mobile. If you package for Windows instead of simply playing in edtior, you’ll receive the same issue. I’ll look into what is causing this, but it is not mobile specific.
Thanks J.
Hello, i know this is old but i thought i would share my findings. I have made a game using Unreal 5.3 and i have encountered this exact problem. when the game is tested in editor, everything works fine, when packaged to android suddenly the “find” node does not work. I also want to clarify that this only seems to be a problem if using the find node when using string or text variables.
I have had to make my own function which does the same thing as the find node and this works on android
Here is what the function looks like in a blueprint.
This function has an input for the array to look in and an input for the item to search for. It then uses a loop with a break to look through the array and if there is an exact match (in this case we are comparing text variables) then we set 2 local variables and break the loop. We then have an output for our local variable to tell us if the item was found and an output for our local variable for the index it was found at.
I have not tested the “set array elem” yet but will post if i found anything out about it.
The above did the trick for me. Thanks a lot.