Skip to content

Commit 52aeb53

Browse files
committed
Bugfix for Unity 2020.1.0f1
1 parent 608caba commit 52aeb53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Plugins/DynamicPanels/Scripts/Helpers/NonDrawingGraphic.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
using UnityEngine.UI;
1+
using UnityEngine;
2+
using UnityEngine.UI;
23

34
namespace DynamicPanels
45
{
56
// Credit: http://answers.unity.com/answers/1157876/view.html
7+
[RequireComponent( typeof( CanvasRenderer ) )]
68
public class NonDrawingGraphic : Graphic
79
{
810
public override void SetMaterialDirty() { return; }

0 commit comments

Comments
 (0)