Exemplo n.º 1
0
        public AudioMixerGroupController[] GetCurrentViewGroupList()
        {
            List <AudioMixerGroupController> allGroups = GetAllAudioGroupsSlow();
            MixerGroupView view = views[currentViewIndex];

            return((from g in allGroups
                    where view.guids.Contains(g.groupID)
                    select g).ToArray());
        }
Exemplo n.º 2
0
        public void CloneViewFromCurrent()
        {
            Undo.RecordObject(this, "Create view");

            var            viewList = new List <MixerGroupView>(views);
            MixerGroupView view     = new MixerGroupView();

            view.name  = views[currentViewIndex].name + " - Copy";
            view.guids = views[currentViewIndex].guids;
            viewList.Add(view);
            views = viewList.ToArray();

            currentViewIndex = viewList.Count - 1;
        }
 public void RecreateListControl()
 {
     if (this.m_Controller != null)
     {
         this.m_Views = new List<MixerGroupView>(this.m_Controller.views);
         if (this.m_Views.Count == 0)
         {
             MixerGroupView item = new MixerGroupView();
             if (<>f__am$cache0 == null)
             {
 private void RecreateListControl()
 {
     if (this.m_Controller != null)
     {
         ReorderableList list;
         this.m_Views = new List<MixerGroupView>(this.m_Controller.views);
         if (this.m_Views.Count == 0)
         {
             MixerGroupView item = new MixerGroupView();
             if (<>f__am$cache5 == null)
             {