sm.uuid.new
Creates a uuid from a string or generates a random uuid (version 4).
Kind: Function
Environments: Game, Terrain
Game
Game overload 1
sm.uuid.new( uuid )
Parameters:
| Name | Type | Description |
|---|---|---|
uuid (optional) |
Uuid | The uuid to create a uuid instance from. If none is provided, generate a random uuid. |
Returns:
| Type | Description |
|---|---|
| Uuid | The created uuid. |
Game overload 2
sm.uuid.new( uuid )
Parameters:
| Name | Type | Description |
|---|---|---|
uuid (optional) |
string | The uuid string to create a uuid instance from. If none is provided, generate a random uuid. |
Returns:
| Type | Description |
|---|---|
| Uuid | The created uuid. |
Terrain
Terrain overload 1
sm.uuid.new( uuid )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
uuid (optional) |
Uuid | The uuid to create a uuid instance from. If none is provided, generate a random uuid. |
Returns:
| Type | Description |
|---|---|
| Uuid | The created uuid. |
Terrain overload 2
sm.uuid.new( uuid )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
uuid (optional) |
string | The uuid string to create a uuid instance from. If none is provided, generate a random uuid. |
Returns:
| Type | Description |
|---|---|
| Uuid | The created uuid. |