MA_TextureAtlasser/Assets/MA_ToolBox/MA_Utilities/StringUtils/MA_StringUtils.cs
max 8ff2db7e87 Model groups.
Added model group support, you can now have multiple meshes in one export.
Removed OBJ and mesh replace export options.
Mesh replace didn't work, might get added again in the feature.
OBJ needs to be rewritten as well to support the multiple meshes, and Unity now has model export options in engine.
Version 1.8.0+ is now only supports Unity2018.3+.
2020-04-20 22:30:08 +02:00

28 lines
605 B
C#

//-
using UnityEditor;
using UnityEngine;
namespace MA_Toolbox.Utils
{
public static class MA_StringUtils
{
private const string ALPHABET = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ";
public static string RandomAlphabetString(int length)
{
string s = "";
for (int i = 0; i < length; i++)
{
s += RandomAlphabetChar();
}
return s;
}
public static char RandomAlphabetChar()
{
return ALPHABET[Random.Range(0, ALPHABET.Length)];
}
}
}