Updated NonDrawingGraphic to require a CanvasRender, else it causes an error on run (and doesn't work)
- Resolves: https://github.com/Unity-UI-Extensions/com.unity.uiextensions/issues/420pull/413/head
parent
07ec98c989
commit
54a71dcf05
|
@ -6,6 +6,7 @@ namespace UnityEngine.UI.Extensions
|
|||
/// A concrete subclass of the Unity UI `Graphic` class that just skips drawing.
|
||||
/// Useful for providing a raycast target without actually drawing anything.
|
||||
[AddComponentMenu("Layout/Extensions/NonDrawingGraphic")]
|
||||
[RequireComponent(typeof(CanvasRenderer))]
|
||||
public class NonDrawingGraphic : MaskableGraphic
|
||||
{
|
||||
public override void SetMaterialDirty() { return; }
|
||||
|
|
Loading…
Reference in New Issue