How to increase MaxUObjects for Android?

JulianPW
Wed, 10 Sep 2025 10:23:35 +0000
XR Development

Working with UE 5.3.2 I want to increase the MaxUObjectsInGame for an Android device.
I already added a Project/Config/Android/DefaultAndroidEngine.ini where I set gc.MaxObjectsInGame and gc.MaxObjectsInProgram.
I also looked into calling FUObjectArray::AllocateObjectPool() but I do not know if there is a correct time in my project to do that. The earliest time to do that that I can think of is GameInstance::Init which is too late, since UObjects were already created. It fails at check(ObjObjects.Num() == 0);.

Thank you.

2 posts - 1 participant