Exemplo n.º 1
0
    void OnEnable()
    {
        UtilityDisplay display = GetComponent <UtilityDisplay>();

        fpsInfo        = display.GetSectionById("fps");
        fpsInfo.anchor = TextAnchor.UpperCenter;
    }
Exemplo n.º 2
0
    void OnDisable()
    {
        UtilityDisplay display = GetComponent <UtilityDisplay>();

        display.RemoveSectionById("fps");
        fpsInfo = null;
    }
Exemplo n.º 3
0
    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);
    }