- Home /
How to access the IOS's memory usage in runtime!?
As above, i wanna to check whether there is enough memory for my new allocation!
Answer by Dreamora · Jul 13, 2011 at 08:17 PM
You need to use native code through a plugin to do so.
But thats not good practice on iOS as you can not assume anything basing on the data you get as iOS has the control, not your app. On iOS you normally listen to the memory warnings (The AppController.mm has the corresponding function defined - it leads to the log outputs - but its not hooked to call anything in unity until you use UnitySendMessage to call something specific) and reduce memory when you hit the warning
Your answer
Follow this Question
Related Questions
Unity iOS controlling heap size growth 1 Answer
AudioManager memory usage on iOS when using Asset Bundles 3 Answers
"stream from disc" WAV/AIFF file allocates tons of memory 0 Answers
Memory Allocation Continues to Grow? iOS. 4.6.3 0 Answers
Where is Actually The Prefabs Stored Before Instantiation? RAM or Storage(Internal Memory) 2 Answers