Skip to content

This project/package generates random names/places within a Unity Project. It's useful for NPC names.

License

Notifications You must be signed in to change notification settings

DuckBoss/NamePlaceGen-Unity

Repository files navigation

RandomNamePlaceGen-Unity

  • This project/package generates random names/places within a Unity Project.

GitHub release Packagist

Installation :

  • Open the folder as a project in the Unity Game Engine OR
  • Create a project in the Unity Game Engine and import the included 'RandomNamePlaceGen-Unity.unitypackage'.

Usage :

  • Have the 'RandomNameGen' Script present in the scene.
  • Generate Male/Female/Other/Place names by calling the public accessible methods in 'RandomNameGen'.
  • I HIGHLY RECOMMEND PRE-CACHING THE NAMES YOU WISH TO USE AT RUNTIME FOR PERFORMANCE REASONS

Examples:

using UnityEngine;
using JJ_RandomNameGen;
public testClass : Monobehavior {
    private RandomNameGen genScript;
    
    private void Start() {
        genScript = new RandomNamePlaceGen();
        string MaleFirstName = genScript.GenerateFirstNameMale();
        string FemaleFirstName = genScript.GenerateFirstNameFemale();
        string Place = genScript.GeneratePlace();
    }
    ...
}

Extra Information:


  • Check the 'Example' folder for a demo scene.
  • The script is fully documented.

About

This project/package generates random names/places within a Unity Project. It's useful for NPC names.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages