- Home /
Update and FixedUpdate doesn't work on my Android device
I create a game with player and many other game characters, when I open game in editor or PC everything works fine, even if I open a game in Android simulator on PC it also works fine. However, when I open a game in Android device sometimes Update or FixedUpdate function on most characters don't work. The only way to work is to restart the scene. I don't have any ideas how to solve this problem, I changed versions of Unity, but it doesn't make sense.
Everything except the things that are in Update or FixedUpdate works.
If Update is correctly named and isn't being called then it seems most likely to me that either your GameObject isn't active or the component isn't enabled. Unless none of them are being called in which case it could also be that the timescale is low. There are all sorts of reasons why these things could be the case, or why it might differ from one platform to another. I find it hard to imagine that anyone can help without a lot more information.
The first thing to do is to check logcat for errors as tanoshimi says.
If you don't see anything suspect, another approach I might take would be to put logging in the component's OnEnable and OnDisable functions so that you know when they're being called and thus know for definite which components are enabled at what times.