UnityEditor.GameObjectTreeViewDataSource.CreateTreeViewItem C# (CSharp) Method

CreateTreeViewItem() private method

private CreateTreeViewItem ( HierarchyProperty property, bool hasSearchString, int depth, bool shouldDisplay ) : GameObjectTreeViewItem
property HierarchyProperty
hasSearchString bool
depth int
shouldDisplay bool
return GameObjectTreeViewItem
        private GameObjectTreeViewItem CreateTreeViewItem(HierarchyProperty property, bool hasSearchString, int depth, bool shouldDisplay)
        {
            GameObjectTreeViewItem item = new GameObjectTreeViewItem(property.instanceID, depth, null, string.Empty) {
                colorCode = property.colorCode,
                objectPPTR = property.pptrValue,
                shouldDisplay = shouldDisplay
            };
            if (!hasSearchString && property.hasChildren)
            {
                item.children = LazyTreeViewDataSource.CreateChildListForCollapsedParent();
            }
            return item;
        }