Returns a unit's globally unique identifier


See also Unit functions, CombatLog functions.

Signature:

guid = UnitGUID("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • guid - The unit's GUID (string, guid)