We have redirected you to our new domain: store.godotengine.org. Please update your bookmarks!

Description
Changelog
Reviews

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))

Changelog for version v4.0.0

No changelog provided for this version.

Reviews (1)

Recommended by Syvies - 02 February 2026

Better than referencing the uid of Resources when we want to use unique identifiers internally! In my opinion, it needs some rework to use static typing for better performances and maybe using a PackedInt32Array for the main _uuid variable for space efficiency.

Login to write a review.