Skip to content

Instantly share code, notes, and snippets.

Avatar

DrSharky

View GitHub Profile
@DrSharky
DrSharky / Caret.cs
Last active Oct 3, 2022
A script for Unity3D to customize the caret of a Text Mesh Pro Input Field game object.
View Caret.cs
using System.Collections;
using UnityEngine;
using TMPro;
using System;
/// <summary>
/// This class is for creating a custom caret for TextMeshPro InputField GameObjects in Unity.
/// </summary>
public class Caret : MonoBehaviour
{