Skip to content

Instantly share code, notes, and snippets.

View yatyricky's full-sized avatar
💭
I may be slow to respond.

Rick Sun yatyricky

💭
I may be slow to respond.
  • Rogue Encampment
View GitHub Profile
@soraphis
soraphis / ClickWordInTextTest.cs
Created August 8, 2016 14:24
Test Unity script to handle clicks on specific words in UI-Text components
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace DefaultNamespace {
public class ClickWordInTextTest : MonoBehaviour, IPointerClickHandler{
public Text TheTextComponent; // filled in the inspector or somewhere else