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
@echo off | |
:: find first filename with *csharp.sln | |
FOR %%F IN (*csharp.sln) DO ( | |
set filename=%%F | |
goto filenamefound | |
) | |
:: no csharp solution found, skip to opening unity | |
goto openunity |
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 UnityEditor; | |
using System.IO; | |
/// <summary> | |
/// editor script that renames imported .atlas files to .atlas.txt files | |
/// </summary> | |
public class AtlasFileRenamer : AssetPostprocessor | |
{ | |
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) |
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 System.Collections; | |
using System.Collections.Generic; | |
using CraftingLegends.Framework; | |
using CraftingLegends.Core; | |
using System; | |
using CraftingLegends.ExtendedFramework; | |
/// <summary> | |
/// short example class showing how you can adapt to user switching control scheme |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Random = UnityEngine.Random; | |
public class #SCRIPTNAME# : MonoBehaviour | |
{ | |
void Start() | |
{ |
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 UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
public static class AssetFilesCounter | |
{ | |
[MenuItem("Utilities/Count Asset Files")] | |
public static void CountAssetFiles() |
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 System.Collections; | |
using System.Collections.Generic; | |
using Random = CraftingLegends.Core.Random; | |
namespace CraftingLegends.Framework | |
{ | |
public class RandomDungeonConnectCenters : MonoBehaviour | |
{ | |
[System.Serializable] |
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 UnityEditor; | |
using System.IO; | |
// example PostProcessor for adjusting automatic Sprite Import settings | |
// save this in any "Editor" Folder | |
public class SpriteImportProcessor : AssetPostprocessor | |
{ | |
void OnPostprocessSprites(Texture2D texture, Sprite[] sprites) | |
{ |
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 UnityEditor; | |
using System.Reflection; | |
using System; | |
public static class ConsoleUtilitiesEditor | |
{ | |
[MenuItem("Tools/Clear Console %#c")] // Cmd/Ctrl + Shift + C | |
private static void ClearConsoleMenuItem() | |
{ | |
ClearConsole(); |
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 System.Collections; | |
using System.Collections.Generic; | |
public static class ListExtensions | |
{ | |
public static T PickRandom<T>(this IList<T> source) | |
{ | |
if (source.Count == 0) | |
return default(T); |
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 UnityEditor; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ColorToCSharp : EditorWindow | |
{ | |
[SerializeField] | |
private bool _usedColorPickerOnce = false; |
OlderNewer