4 protected TextWidget m_Text;
9 string GetGUID(Managed
object)
11 string result =
object.ToString();
12 int indexLeft = result.IndexOf(
"<") + 1;
13 int indexRight = result.IndexOf(
">");
14 return result.Substring(indexLeft, indexRight - indexLeft);
20 string guid = GetGUID(entity);
21 string prefab = FilePath.StripPath(entity.GetPrefab());
28 m_Text = TextWidget.Cast(widget);
29 m_Text.SetColor(Color.FromInt(Color.PINK));
30 return m_Text && DiagMenu.GetValue(
SCR_DebugMenuID.DEBUGUI_EDITOR_GUI_TOOLTIP_DEBUG);