Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@litefeel
Created August 20, 2018 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save litefeel/3bdb59e3caacff5bc5e67e3cb52901f1 to your computer and use it in GitHub Desktop.
Save litefeel/3bdb59e3caacff5bc5e67e3cb52901f1 to your computer and use it in GitHub Desktop.
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