public void InsertData(int id)
        {
            UVNormalBlendMonoBehaviour.Data data = new UVNormalBlendMonoBehaviour.Data();
            data.rendererName = "Click to rename";
            data.renderer     = new PPtr <MeshRenderer>(null);
            Datas.Insert(id >= 0 ? id : Datas.Count, data);
            Parser.datas = Datas;

            Changed = true;
        }
        private void MoveLastItemToFirst()
        {
            if (Datas.Count == 0)
            {
                return;
            }
            var tree = Datas[Datas.Count - 1];

            Datas.RemoveAt(Datas.Count - 1);
            Datas.Insert(0, tree);
        }
Beispiel #3
0
 public void Insert(int index, DataType item)
 {
     Datas.Insert(index, item);
     CallUpdate();
 }