Skip to content

binogure-studio/godot-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uuid - static uuid generator for Godot Engine

The UUID class is a GDScript 'static' class that provides a unique identifier generation for Godot Engine.

Usage

Copy the uuid.gd file in your project folder, then start using it.

func _init():
  # To generate a new UUID string
  print(UUID.v4())

  # To generate a new UUID object
  var uuid_object = UUID.new()
  var uuid_object_2 = UUID.new()

  print(uuid_object.as_string())
  print(uuid_object.as_dict())

  # Get a duplicated object
  print(uuid_object.as_array())

  # Compare 2 UUID objects
  print(uuid_object.is_equal(uuid_object_2))

Licensing

MIT (See license file for more informations)

About

Unique identifier generation v4 for Godot Engine

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors