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

Method GetPreset

Source/Engine/Core/Config/BuildSettings.cs:52–63  ·  view source on GitHub ↗

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

(string name)

Source from the content-addressed store, hash-verified

50 /// <param name="name">The preset name.</param>
51 /// <returns>Found preset or null if is missing.</returns>
52 public BuildPreset GetPreset(string name)
53 {
54 if (Presets != null)
55 {
56 for (int i = 0; i < Presets.Length; i++)
57 {
58 if (string.Equals(Presets[i].Name, name, StringComparison.OrdinalIgnoreCase))
59 return Presets[i];
60 }
61 }
62 return null;
63 }
64#endif
65 }
66}

Callers 1

TryBuildCommandMethod · 0.80

Calls 1

EqualsMethod · 0.45

Tested by

no test coverage detected