Created
August 20, 2018 09:27
-
-
Save litefeel/3bdb59e3caacff5bc5e67e3cb52901f1 to your computer and use it in GitHub Desktop.
T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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