|
|
|
|
|
|
public class LocalizeTMProFontEvent : LocalizedAssetEvent<TMP_FontAsset, LocalizedTMProFont, UnityEventFont> |
|
|
|
{ |
|
|
|
private void Reset() |
|
|
|
{ |
|
|
|
//Set up Unity Event automatically
|
|
|
|
{ |
|
|
|
//Set up Unity Event automatically
|
|
|
|
UnityEditor.Events.UnityEventTools.AddPersistentListener(this.OnUpdateAsset, methodDelegate); |
|
|
|
|
|
|
|
//Set up font localize asset table automatically
|
|
|
|
UnityEditor.Events.UnityEventTools.AddPersistentListener(this.OnUpdateAsset, methodDelegate); |
|
|
|
|
|
|
|
//Set up font localize asset table automatically
|
|
|
|
var collections = LocalizationEditorSettings.GetAssetTableCollections(); |
|
|
|
foreach (var tableCollection in collections) |
|
|
|
{ |
|
|
|