Fix to add a "RequireComponent" to Primitives as Unity 2020 does not add them by default

pull/413/head
Simon (darkside) Jackson 2020-09-18 18:37:00 +01:00
parent 84bf882777
commit a6adfa849c
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ namespace UnityEngine.UI.Extensions
PerLine PerLine
} }
[RequireComponent(typeof(CanvasRenderer))]
public class UIPrimitiveBase : MaskableGraphic, ILayoutElement, ICanvasRaycastFilter public class UIPrimitiveBase : MaskableGraphic, ILayoutElement, ICanvasRaycastFilter
{ {
static protected Material s_ETC1DefaultUI = null; static protected Material s_ETC1DefaultUI = null;