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

Method GetTarget

Source/Editor/Content/Settings/BuildPreset.cs:31–42  ·  view source on GitHub ↗

Gets the target of the given name (ignore case search) or returns null if cannot find it. The target name. Found target or null if is missing.

(string name)

Source from the content-addressed store, hash-verified

29 /// <param name="name">The target name.</param>
30 /// <returns>Found target or null if is missing.</returns>
31 public BuildTarget GetTarget(string name)
32 {
33 if (Targets != null)
34 {
35 for (int i = 0; i < Targets.Length; i++)
36 {
37 if (string.Equals(Targets[i].Name, name, StringComparison.OrdinalIgnoreCase))
38 return Targets[i];
39 }
40 }
41 return null;
42 }
43 }
44}

Callers 1

TryBuildCommandMethod · 0.45

Calls 1

EqualsMethod · 0.45

Tested by

no test coverage detected