void OnEnable() { UtilityDisplay display = GetComponent <UtilityDisplay>(); fpsInfo = display.GetSectionById("fps"); fpsInfo.anchor = TextAnchor.UpperCenter; }
void OnDisable() { UtilityDisplay display = GetComponent <UtilityDisplay>(); display.RemoveSectionById("fps"); fpsInfo = null; }
void GetSections() { UtilityDisplay display = GetComponent <UtilityDisplay>(); unityInfo = display.GetSectionById("unity"); unityInfo.anchor = TextAnchor.LowerLeft; }
void OnValidate() { if (string.IsNullOrEmpty(id)) { return; } UtilityDisplay display = GetComponent <UtilityDisplay>(); fileInfo = display.GetSectionById(id); fileInfo.text = GetFileContent(path); }