Beispiel #1
0
    public void OpenFolder(GameObject obj)
    {
        List <string> path = new List <string>
        {
            obj.name
        };
        Transform t = obj.transform;

        t = t.parent;
        while (t != transform)
        {
            path.Add(t.name);
            t = t.parent;
        }
        DirectoryTree dtt = dt;

        for (int i = path.Count - 1; i >= 0; i--)
        {
            dtt = dtt.Find(path[i]);
        }
        dtt.Extend();
    }