优化编辑器显示

This commit is contained in:
2026-05-19 16:18:45 +08:00
parent 3f10aa07ae
commit 83bc595fcc
2 changed files with 2067 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -168,11 +168,12 @@ namespace BaseGames.World
? col.bounds.center + Vector3.up * (col.bounds.extents.y + 0.3f)
: transform.position + Vector3.up * 1.5f;
string facing = _facingDirectionOnArrive >= 0 ? "→" : "←";
string trigger = _autoTrigger ? "Auto" : "Interact";
string linkName = _linkedDoor != null ? _linkedDoor.name : "未配对";
string keyInfo = _requiresKeyItem ? $" 🔑{_requiredItemId}" : "";
string label = $"{name}\n→ {linkName} | {trigger} | 到达朝向:{facing}{keyInfo}";
string facing = _facingDirectionOnArrive >= 0 ? "→" : "←";
string trigger = _autoTrigger ? "Auto" : "Interact";
string linkName = _linkedDoor != null ? _linkedDoor.name : "未配对";
string keyInfo = _requiresKeyItem ? $" 🔑{_requiredItemId}" : "";
string grandparent = transform.parent?.parent != null ? $"[{transform.parent.parent.name}] " : "";
string label = $"{grandparent}{name}\n→ {linkName} | {trigger} | 到达朝向:{facing}{keyInfo}";
UnityEditor.Handles.color = Color.white;
UnityEditor.Handles.Label(labelPos, label);