decentraland / decentraland/godot-explorer

Nameplate Color Change

Open
#1,684 0 comments 0 reactions 1 assignee Claimed by @sdilauro View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.