When I build my game in Xcode and run on my Ipad it crashes due to memory usage over 650 mb. Starts on 95 mb and builds up to 650 in 20 min. I want to see if this increase goes on in the same pace “forever”. Since Xcode shuts down the game at 650 mb I have to get this data from the device itself. So im asking: Is there a code that returnes an integer with mb of the current memory usage for the game?
Check how to connect the profiler to your device in the documentation. You can monitor the memory usage connecting the Unity Profiler to your device via wifi: