Skip to content

Instantly share code, notes, and snippets.

Created April 15, 2016 13:51
What would you like to do?
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections.Generic;
public class TextEffect : UIBehaviour, IMeshModifier {
public new void OnValidate()
base.OnValidate ();
var graphics = base.GetComponent<Graphic> ();
if (graphics != null) {
graphics.SetVerticesDirty ();
public void ModifyMesh (Mesh mesh){}
public void ModifyMesh (VertexHelper verts)
var stream = ListPool<UIVertex>.Get ();
verts.GetUIVertexStream (stream);
modify (ref stream);
ListPool<UIVertex>.Release (stream);
void modify( ref List<UIVertex> stream ){
// 頂点を云々する。1テキスト6頂点
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment