Skip to content

Instantly share code, notes, and snippets.

@xrdnk
Created January 26, 2022 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xrdnk/711211ef15f7bccf25fb3030ff299adf to your computer and use it in GitHub Desktop.
Save xrdnk/711211ef15f7bccf25fb3030ff299adf to your computer and use it in GitHub Desktop.
TMP_FontAsset 用の LocalizedAssetEvent
using System;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Localization;
using UnityEngine.Localization.Components;
namespace xrdnk
{
/// <summary>
/// TmpFontAsset 用の LocalizedAssetEvent
/// </summary>
[AddComponentMenu("Localization/Asset/" + nameof(LocalizedTmpFontEvent))]
public class LocalizedTmpFontEvent : LocalizedAssetEvent<TMP_FontAsset, LocalizedTmpFont, UnityEventTmpFont> {}
/// <summary>
/// TmpFontAsset を引数とする Unity Event
/// </summary>
[Serializable]
public class UnityEventTmpFont : UnityEvent<TMP_FontAsset> {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment