This file contains 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.Compilation; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class AsmdefDebug | |
{ |
This file contains 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
/* | |
* Legacy Particle System Updater | |
* A tool that can be used to convert Legacy Particle Systems into new Particle System Components. | |
* https://forum.unity.com/threads/release-legacy-particle-system-updater.510879/ | |
* | |
* v1.0 | |
* Initial release | |
* | |
* v1.1 | |
* Fixed incorrect billboard mode |
This file contains 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 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 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 void RemoveLocale(LocaleIdentifier localeIdentifier) | |
{ | |
foreach (var collectionStrings in LocalizationEditorSettings.GetStringTableCollections()) | |
{ | |
var table = collectionStrings.GetTable(localeIdentifier); | |
if (table != null) | |
{ | |
collectionStrings.RemoveTable(table); | |
AssetDatabase.DeleteAsset(AssetDatabase.GetAssetPath(table)); | |
} |
This file contains 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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEditor.Localization; | |
using UnityEngine.Localization.Settings; | |
using UnityEngine.Localization.SmartFormat; | |
using UnityEngine.Localization.SmartFormat.Core.Extensions; |
This file contains 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 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.AddressableAssets; | |
using UnityEngine.ResourceManagement.AsyncOperations; | |
using UnityEngine.UIElements; | |
#if UNITY_EDITOR | |
public class AssetReferenceConverter<T> : UnityEditor.UIElements.UxmlAttributeConverter<AssetReferenceT<T>> where T : Object | |
{ | |
public override AssetReferenceT<T> FromString(string value) | |
{ |
This file contains 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; |
NewerOlder