Method TryGetUUID
TryGetUUID(out Guid)
Attempts to get the UUID for this object, assigning a new ID if it does not already exist.
public bool TryGetUUID(out Guid uid)
Parameters
uidGuidThe object's UUID.
Returns
- bool
True if the object has a valid unique identifier, otherwise false.
Remarks
See PeekUUID() to check if the object has an existing UUID, without creating a new one.
This function will return false if the UUID is not globally unique, and conflicts with an existing object.