Fix to add a "RequireComponent" to Primitives as Unity 2020 does not add them by default
parent
84bf882777
commit
a6adfa849c
|
@ -10,6 +10,7 @@ namespace UnityEngine.UI.Extensions
|
|||
PerLine
|
||||
}
|
||||
|
||||
[RequireComponent(typeof(CanvasRenderer))]
|
||||
public class UIPrimitiveBase : MaskableGraphic, ILayoutElement, ICanvasRaycastFilter
|
||||
{
|
||||
static protected Material s_ETC1DefaultUI = null;
|
||||
|
|
Loading…
Reference in New Issue