// Start is called before the first frame update
    void OnEnable()
    {
        if (soData == null)
        {
            soData = Resources.Load("ModelRecords") as SoModelRecords;
        }

        if (myBareMesh == null)
        {
            myBareMesh = new BareDaggerfallMeshStats();
        }

        if (FilteredModels == null)
        {
            FilteredModels = soData.record;
        }

        if (soData.LastClickedIndex >= FilteredModels.Count)
        {
            soData.LastClickedIndex = 0;
        }


        Texture2D txBlue = new Texture2D(1, 1);

        txBlue.SetPixel(0, 0, Color.blue);
        txBlue.Apply();
        gssSelected            = new GUIStyleState();
        gssSelected.background = txBlue;


        PreviewRenderInit();

        UpdateFilteredList();
    }
    // Start is called before the first frame update
    void OnEnable()
    {
        if (soData == null)
        {
            soData = Resources.Load("ModelRecords") as SoModelRecords;
        }

        Texture2D txBlue = new Texture2D(1, 1);

        txBlue.SetPixel(0, 0, Color.blue);
        txBlue.Apply();
        gssSelected            = new GUIStyleState();
        gssSelected.background = txBlue;
    }