→ WoW API
Returns the player's (unit's) name and server.
fullName, realm = UnitFullName("unit")
- String - unitId to query; the only intended value is "player".
- String - unit's name (with no realm suffix), e.g. "Shion".
- String - unit's realm of origin, e.g. "TarrenMill", if different from the player's own, or no value if the same as the player's own realm (see Details).
- This function is equivalent to UnitName if called with any other unitId than "player". When called with "player" as the argument,
realmis always returned.
Patch 5.4.2 (2013-12-10): Added.