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;