decentraland / decentraland/godot-explorer
Nameplate Color Change
- Dominant language
- Rust
- Stars
- 18
- Forks
- 19
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 43
Description
## Unity Implementation Reference
The Unity client generates the deterministic username/nameplate color via:
- [`NameColorHelper.cs`](https://github.com/decentraland/unity-explorer/blob/main/Explorer/Assets/DCL/Infrastructure/Utility/NameColorHelper.cs) — `NameColorHelper.GetNameColor(name)` computes a deterministic color from the username string.
- [`NametagPlacementSystem.cs`](https://github.com/decentraland/unity-explorer/blob/main/Explorer/Assets/DCL/NameTags/Systems/NametagPlacementSystem.cs) — resolves the color as `profile?.UserNameColor ?? NameColorHelper.GetNameColor(avatarShape.Name)` and applies it to the nametag.
- [`NametagElement.cs`](https://github.com/decentraland/unity-explorer/blob/main/Explorer/Assets/DCL/NameTags/NametagElement.cs) — `SetData(...)` sets `usernameLabel.style.color = usernameColor`, applying the color to the rendered nametag label.
---
_Requested by Rodri via Slack_
Contributor guide
Assessment
This issue has not been assessed yet.