Skip to Content
defold-typescript libraries
selimanac

selimanac/defold-uuid4/uuid4

Defold uuid4 generator native extension

  • GitHub: selimanac/defold-uuid4 — pinned to v1.0
    1. Pick a release from selimanac/defold-uuid4 releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as uuid4 from "uuid4"

Functions

generate(): string

Generates a version 4 UUID.

Returns

  • string — The UUID as a string.

On this page