Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
T
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
public class TouchArea : Graphic
{
protected override void OnEnable()
{
base.OnEnable();
canvasRenderer.Clear();
}
public override void SetMaterialDirty()
{
}
public override void SetVerticesDirty()
{
}
public override void SetLayoutDirty()
{
}
public override bool raycastTarget
{
get { return true; }
}
protected override void OnPopulateMesh(VertexHelper vh)
{
canvasRenderer.Clear();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.