Phaser API Documentation

  Version: 

Member of: Phaser.Utils.String

<static> UUID()

Description:

Creates and returns an RFC4122 version 4 compliant UUID.

The string is in the form: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where each x is replaced with a random hexadecimal digit from 0 to f, and y is replaced with a random hexadecimal digit from 8 to b.

Returns:
Description:

The UUID string.

Type:
  • string
Since: 3.12.0
Source: src/utils/string/UUID.js (Line 7)