This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEngine.UIElements; | |
[Serializable] | |
class DictItem | |
{ | |
public int key; | |
public string value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using TMPro; | |
using UnityEngine; | |
using UnityEngine.Localization; | |
/// <summary> | |
/// Sets the default TextMeshPro font to be used. | |
/// </summary> | |
[ExecuteInEditMode] | |
public class DefaultTmpFont : MonoBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEditor.Localization; | |
using UnityEditor.Localization.Plugins.Google.Columns; | |
using UnityEngine.Localization.Tables; | |
[Serializable] | |
public class GlobalSmartStringColumn : SheetColumn | |
{ | |
public override PushFields PushFields => PushFields.Value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine.EventSystems; | |
namespace UnityEngine.UI | |
{ | |
internal static class MultipleDisplayUtilities | |
{ | |
/// <summary> | |
/// Converts the current drag position into a relative position for the display. | |
/// </summary> | |
/// <param name="eventData"></param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class ObjectChangeEventsExample | |
{ | |
static ObjectChangeEventsExample() | |
{ | |
ObjectChangeEvents.changesPublished += ChangesPublished; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.Localization; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.Localization.Tables; | |
using Object = UnityEngine.Object; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using TMPro; | |
using UnityEditor; | |
using UnityEngine.Localization.PropertyVariants; | |
using UnityEngine.Localization.PropertyVariants.TrackedObjects; | |
using UnityEngine.Localization.PropertyVariants.TrackedProperties; | |
public class AutoLinkTMP | |
{ | |
[MenuItem("CONTEXT/TextMeshProUGUI/Localize (With Localized Properties)")] | |
static void LocalizeTMProText(MenuCommand command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Localization; | |
using UnityEngine.VFX; | |
using UnityEngine.VFX.Utility; | |
[VFXBinder("Localization/Texture Binder")] | |
public class LocalizedTextureBinder : VFXBinderBase | |
{ | |
[SerializeField] | |
LocalizedTexture m_Texture; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int GetSizeOfObject(object obj, StringBuilder sb = null, int indent = 0, bool details = true) | |
{ | |
if (sb == null) | |
{ | |
sb = new StringBuilder(); | |
sb.AppendLine("|Name |Type |Size(b)|"); | |
sb.AppendLine("|--- |--- |--- |"); | |
} | |
if (indent == 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEngine.Localization; | |
using UnityEngine.Localization.PropertyVariants; | |
using UnityEngine.Localization.PropertyVariants.TrackedObjects; | |
using UnityEngine.Localization.PropertyVariants.TrackedProperties; | |
using UnityEngine.ResourceManagement.AsyncOperations; | |
using Object = UnityEngine.Object; | |
[Serializable] |