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

Method Find

Source/Editor/GUI/Popups/ScriptSearchPopup.cs:99–117  ·  view source on GitHub ↗
(Actor actor)

Source from the content-addressed store, hash-verified

97 }
98
99 private void Find(Actor actor)
100 {
101 if (!actor)
102 return;
103
104 for (int i = 0; i < actor.ScriptsCount; i++)
105 {
106 var script = actor.GetScript(i);
107 if (_isValid(script))
108 {
109 AddItem(new ScriptItemView(script));
110 }
111 }
112
113 for (int i = 0; i < actor.ChildrenCount; i++)
114 {
115 Find(actor.GetChild(i));
116 }
117 }
118
119 /// <summary>
120 /// Shows the popup.

Callers

nothing calls this directly

Calls 3

FindFunction · 0.50
GetScriptMethod · 0.45
GetChildMethod · 0.45

Tested by

no test coverage detected