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

Method GetChild

Source/Engine/Level/Actor.cs:154–157  ·  view source on GitHub ↗

Finds the child actor of the given type. Type of the actor to search for. Includes any actors derived from the type. The child actor or null if failed to find.

()

Source from the content-addressed store, hash-verified

152 /// <typeparam name="T">Type of the actor to search for. Includes any actors derived from the type.</typeparam>
153 /// <returns>The child actor or null if failed to find.</returns>
154 public T GetChild<T>() where T : Actor
155 {
156 return GetChild(typeof(T)) as T;
157 }
158
159 /// <summary>
160 /// Tries to the child actor of the given type.

Callers

nothing calls this directly

Calls 1

GetChildFunction · 0.85

Tested by

no test coverage detected