UnityEditor.ASHistoryFileView.SetExpandedRecurse C# (CSharp) Method

SetExpandedRecurse() private method

private SetExpandedRecurse ( int instanceID, bool expand ) : void
instanceID int
expand bool
return void
        private void SetExpandedRecurse(int instanceID, bool expand)
        {
            HierarchyProperty property = new HierarchyProperty(HierarchyType.Assets);
            if (property.Find(instanceID, this.m_ExpandedArray))
            {
                this.SetExpanded(instanceID, expand);
                int depth = property.depth;
                while (property.Next(null) && (property.depth > depth))
                {
                    this.SetExpanded(property.instanceID, expand);
                }
            }
        }