- Home /
Getting the max texture size allowed at runtime
Is there a way to get the max texture size allowed from the current platform at runtime? I'm making a game for iPhone and I want to use a 2048 texture for the newer models, and 1024 for the models that doesn't allow that.
Can I get this somehow, or is there any other solution to this problem?
Answer by efge · Apr 05, 2011 at 02:53 PM
You could use the class SystemInfo: graphicsMemorySize or graphicsDeviceVersion
(But I am not sure if it is available or applicable on iOS.)
Thanks, that would probably work. I ended up selecting which texture to use from the resolution ins$$anonymous$$d, I figured it would be a more general way of doing it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613120816im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
HUGE Texture problems on iPhone when using animated UVs 2 Answers
Why this bad color gradient with textures in iphone? 2 Answers
Converting downloaded texture into PVRTC on iPhone 3 Answers
Large memory footprint increase when assigning a GUITexture from a WWW Object on iPad 1 Answer
DrawTexture GUI iPhone 1 Answer