MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FindChild

Method FindChild

Source/Editor/Content/Items/ContentFolder.cs:88–97  ·  view source on GitHub ↗

Tries to find child element with given path Element path to find Found element of null

(string path)

Source from the content-addressed store, hash-verified

86 /// <param name="path">Element path to find</param>
87 /// <returns>Found element of null</returns>
88 public ContentItem FindChild(string path)
89 {
90 for (int i = 0; i < Children.Count; i++)
91 {
92 if (Children[i].Path == path)
93 return Children[i];
94 }
95
96 return null;
97 }
98
99 /// <summary>
100 /// Check if folder contains child element with given path

Callers 6

LoadFolderMethod · 0.80
CreateMethod · 0.80
RenameMethod · 0.80
DuplicateMethod · 0.80
NewFolderMethod · 0.80
NewItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected