Horje
unity create random string Code Example
unity create random string
    string RandomStringGenerator(int lenght)
    {
        string characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
        string generated_string = "";

        for(int i = 0; i < lenght; i++)
            generated_string += characters[Random.Range(0, lenght)];

        return generated_string;
    }
unity random string
    string RandomStringGenerator(int lenght)
    {
        //string st = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        string result = "";
        for (int i = 0; i < lenght; i++)
        {
            char c = (char)('A' + Random.Range(0, 26));
            result += c;
        }

        return result;
    }




Csharp

Related
how to find the mouse position unity Code Example how to find the mouse position unity Code Example
how to set a custom size for window in monogame Code Example how to set a custom size for window in monogame Code Example
how to detect collision in unity Code Example how to detect collision in unity Code Example
fade text unity Code Example fade text unity Code Example
unity change text Code Example unity change text Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8