Hello all! I’m creating a 2d game, using NGUI and A* pathfinding algorithm. Everything was fine, until one day, I started my game on phone and AI objects didn’t run. After some researches, I found out that it’s a problem with A* function “OnPathComplete”. It just doesn’t call when we get path back.
Everything works fine on PC, but with this problem on devices (Samsung Galaxy mini 2; Samsung Galaxy Tab 2). I had tried to reload A* package to recover all scripts but it didn’t help.
Who knows why this problem appears - help me, please
First A* is just an algorithm and there are tons of implementations of it. You probably talk about one implementation of arongranberg.
I can tell you for sure that it works on Android In my last company we used it and ir worked as it should on Android (different models) and iPad.
You probably doing something wrong. Well now i can stop here since we don’t know what your code looks like or where it goes wrong.
Some additional points:
- Do you have any platform dependend compilation? (
#if UNITY_ANDROID
…)? - Do you have checked your logcat for any errors?