Skip to content

Instantly share code, notes, and snippets.

View DrSharky's full-sized avatar
🐗

DrSharky

🐗
View GitHub Profile
@DrSharky
DrSharky / Caret.cs
Last active August 14, 2023 07:05
A script for Unity3D to customize the caret of a Text Mesh Pro Input Field game object.
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
{