
A UUID generator for the Godot Engine, with 1.295×10^50 combinations it'll work for any sized game, never having to worry about running out of unique IDs! Automatically stores new UUIDs and removes old ones. Supports GDScript & C#.
Copy the minos_uuid_generator directory into your res://addons/ directory. Then make sure to enable the plugin in Project Settings -> Plugins. For C# projects make sure to remember to build!
Create new UUIDManager or UUIDManagerCSharp node
That's it! The UUIID is generated automatically and is removed automatically when the node is removed.
1. Add a UUIDManager variable in the script you want to store the UUID node in
extends Node2. Set the variable by calling the
## Variables
var uuidNode : UUIDManagercreate_new_uuid() script at _ready(). The function takes in the parent to add the node to as a child.
extends Node
## Variables
var uuidNode : UUIDManager
func _ready():
uuidNode = MinosUUIDGenerator.create_new_uuid(self)
1. Add a UUIDManagerCSharp variable in the script you want to store the UUID node in
extends Node2. Set the variable by calling the
// Variables
public UUIDManagerCSharp uuidNodeCreateNewUUID() script at _Ready(). The function takes in the parent to add the node to as a child.
extends Node
// Variables
public UUIDManagerCSharp uuidNode
public override void _Ready():
uuidNode = MinosUUIDGeneratorCSharp.CreateNewUUID(this)
The MinosUUIDGenerator script comes with 4 variables for debugging. By default they're set to true.
GDScript:
static var printNewUUID : bool = true
static var printSuccessfulRemoval : bool = true
static var printFailedRemoval : bool = true
static var printNewUUIDNode : bool = true
C#:
static bool printNewUUID = true
static bool printSuccessfulRemoval = true
static bool printFailedRemoval = true
static bool printNewUUIDNode = true
printNewUUID will print a message when a new UUID is made and it's UUID.
printSuccessfulRemoval will print a message when a UUID is removed as well as the old UUID.
printFailedRemoval will print a message when a UUID was attempted to be removed but couldn't be found in the array.
printNewUUIDNode will print a message when a new UUIDManager/UUIDManagerCSharp node is made.