UnityEditor.MemoryElement.ExpandChildren C# (CSharp) Method

ExpandChildren() public method

public ExpandChildren ( ) : void
return void
        public void ExpandChildren()
        {
            if (this.children == null)
            {
                this.children = new List<MemoryElement>();
                for (int i = 0; i < this.ReferenceCount(); i++)
                {
                    this.AddChild(new MemoryElement(this.memoryInfo.referencedBy[i], false));
                }
            }
        }

Usage Example

Ejemplo n.º 1
0
 protected void DrawRecursiveData(MemoryElement element, ref int row, int indent)
 {
     if (element.ChildCount() != 0)
     {
         element.ExpandChildren();
         foreach (MemoryElement current in element.children)
         {
             row++;
             this.DrawItem(current, ref row, indent);
         }
     }
 }
All Usage Examples Of UnityEditor.MemoryElement::ExpandChildren