示例#1
0
    private void OnEnable()
    {
        GameRenderer renderer = GameObject.FindObjectOfType <GameRenderer>();

        renderer.AddActivePanel(this);
        Transform content = transform.Find("Scroll View").Find("Viewport").Find("Content");

        Debug.Log(content);
        //clear previous children
        ClearChildren(content);
        AddSliders(content);
    }