[WIP] Random Name Generator Asset

Hello All,
I’m a 19 year old programmer and I love not only making games, but trying to make games easier and more fun for others to make. I’m hoping to use this thread to pitch my most recent project to the average Unity users and hopefully get enough feedback to grow it into a really helpful tool.

So as the name of this thread explains, my asset is a Random Name Generator, a quick outline of the features for this asset would be

  • Organize .txt files full of string data, (names), into dictionaries and lists
  • Allow easy randomization of these names with just the call of one function
  • Allow in editor randomization of names
  • Allow in editor import tool for .txt files
  • Come stock with large name databases
  • Allow the addition of custom name databases easily

So far I have achieved these goals, (I believe). My asset is a collection of scripts to read .txt files line by line that are filled with names, and randomly select single names from those files or whole lists of names.

It also allows for the user to easily import a .txt file with the correct naming convention for my asset to work with it and copies it to the correct directory. Also there is an in editor button for randomizing a name or multiple names from any list imported into project.

I separate the name lists by sex for obvious reasons but I also threw in a culture variable. This is because different cultures have very different names and I feel it adds more power to the user to select which name list they want to randomize from by the list’s culture. So the stock list I’ve added so far is the Caucasian name list. This is basically just names common for American White Male and Females. I do plan to add more name lists but that can get very tedious so I’ve left it for one of the last things I do for the asset. The asset already has 800 Caucasian names for each gender.

The project is for all intents and purposes finished, just needs some feedback. Here are some screenshots of it in action.

Let me know what you think I should do with this asset and how it can be an improvement on other random name generators on the market currently. Thanks for reading and have a good day!

Result of calling some of the included functions and Debug.Logging them. Returns list of names and random list of names

All .txt databases stored in the Data folder

This is the import tool for importing a custom .txt name database. The files must be named a certain way for the asset to work. That naming convention is, (the culture you want the name list to be)_(the gender).txt

This is the drop down menu for the asset that allows you to select the file import tool and the in editor randomization tool. The initialize all name lists option must be clicked first to load all of the data first, then you will be able to randomize names.

This is the result of clicking Return 5 Random Names Caucasian_M

Another picture for you all. This is the code used to test the project. It is fairly well documented, but it basically demonstrates the asset’s ability to randomize names. The letter added at the end of the function call is an optional parameter. It says to only randomize names that begin with that letter, for instance

// Returns a random name that is male, from a random culture, and begins with the letter C.
rng.ReturnRandomName("M", "Any", 'C');

// Returns a list of all male names, of caucasian culture, beginning with the letter B
rng.ReturnNameList("M", "Caucasian", 'B');

// Returns a list of random names that is female, has a size of 10 names, caucasian culture, and has no letter requirement
rng.ReturnRandomNameList(10, "F", "Caucasian");