Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 690b86d

Browse files
committed
fix raster cache error on low-end android devices
1 parent cfd937f commit 690b86d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Runtime/editor/window_config.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ namespace Unity.UIWidgets.editor {
44
public class WindowConfig {
55
public readonly bool disableRasterCache;
66

7-
public static float MaxRasterImageSize = 4096;
7+
#if UNITY_ANDROID
8+
//make API compatible to low-end Android devices
9+
public static float MaxRasterImageSize = 2048;
10+
#else
11+
public static float MaxRasterImageSize = 4096;
12+
#endif
813

914
static bool? _disableComputeBuffer = null;
1015

0 commit comments

Comments
 (0)