private bool InternalRegisterTextElementForGraphicRebuild(TMP_Text element) { int id = element.GetInstanceID(); if (this.m_GraphicQueueLookup.ContainsKey(id)) { return(false); } m_GraphicQueueLookup[id] = id; this.m_GraphicRebuildQueue.Add(element); return(true); }
void DisplayMessage(TMP_Text message) { for (int i = 0; i < dialogMessages.Length; i++) { if (dialogMessages[i].GetInstanceID() != message.GetInstanceID()) { dialogMessages[i].gameObject.SetActive(false); } else { dialogMessages[i].gameObject.SetActive(true); } } }
private void InternalUnRegisterTextElementForLayoutRebuild(TMP_Text element) { //if (this.m_PerformingLayoutRebuild) //{ // Debug.LogError((object)string.Format("Trying to remove {0} from rebuild list while we are already inside a rebuild loop. This is not supported.", (object)element)); //} //else //{ int id = element.GetInstanceID(); //element.LayoutComplete(); TMP_UpdateManager.instance.m_LayoutRebuildQueue.Remove(element); m_LayoutQueueLookup.Remove(id); //} }