void OnEnable() { UtilityDisplay display = GetComponent <UtilityDisplay>(); fpsInfo = display.GetSectionById("fps"); fpsInfo.anchor = TextAnchor.UpperCenter; }
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); }