Merged in fix/primitivebase (pull request #91)

Fix to add a "RequireComponent" to Primitives as Unity 2020 does not add them by default
pull/413/head
Simon Jackson 2020-09-18 17:49:48 +00:00
commit 726396b164
1 changed files with 1 additions and 0 deletions

View File

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