From a6adfa849c14ee57b9cf92070e71cba1b59762c0 Mon Sep 17 00:00:00 2001 From: "Simon (darkside) Jackson" Date: Fri, 18 Sep 2020 18:37:00 +0100 Subject: [PATCH] Fix to add a "RequireComponent" to Primitives as Unity 2020 does not add them by default --- Runtime/Scripts/Primitives/UIPrimitiveBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/Scripts/Primitives/UIPrimitiveBase.cs b/Runtime/Scripts/Primitives/UIPrimitiveBase.cs index e52823e..0c8ef11 100644 --- a/Runtime/Scripts/Primitives/UIPrimitiveBase.cs +++ b/Runtime/Scripts/Primitives/UIPrimitiveBase.cs @@ -10,6 +10,7 @@ namespace UnityEngine.UI.Extensions PerLine } + [RequireComponent(typeof(CanvasRenderer))] public class UIPrimitiveBase : MaskableGraphic, ILayoutElement, ICanvasRaycastFilter { static protected Material s_ETC1DefaultUI = null;