From 690b86d6ca0b5450d5a6b20609e47fab1da208f9 Mon Sep 17 00:00:00 2001 From: "xingwei.zhu" Date: Fri, 22 Nov 2019 18:05:59 +0800 Subject: [PATCH] fix raster cache error on low-end android devices --- Runtime/editor/window_config.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Runtime/editor/window_config.cs b/Runtime/editor/window_config.cs index 609d1d57..f985ddaf 100644 --- a/Runtime/editor/window_config.cs +++ b/Runtime/editor/window_config.cs @@ -4,7 +4,12 @@ namespace Unity.UIWidgets.editor { public class WindowConfig { public readonly bool disableRasterCache; - public static float MaxRasterImageSize = 4096; +#if UNITY_ANDROID + //make API compatible to low-end Android devices + public static float MaxRasterImageSize = 2048; +#else + public static float MaxRasterImageSize = 4096; +#endif static bool? _disableComputeBuffer = null;