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

Function AddPreset

Source/Editor/Windows/GameCookerWindow.cs:1053–1077  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1051 }
1052
1053 private void AddPreset()
1054 {
1055 var count = _data?.Length ?? 0;
1056 var presets = new BuildPreset[count + 1];
1057 if (count > 0)
1058 Array.Copy(_data, presets, count);
1059 presets[count] = new BuildPreset
1060 {
1061 Name = "Preset " + (count + 1),
1062 Targets = new[]
1063 {
1064 new BuildTarget
1065 {
1066 Name = "Windows 64bit",
1067 Output = "Output\\Win64",
1068 Platform = BuildPlatform.Windows64,
1069 Mode = BuildConfiguration.Development,
1070 },
1071 }
1072 };
1073 _data = presets;
1074
1075 MarkAsEdited();
1076 RefreshColumns();
1077 }
1078
1079 private void AddTarget()
1080 {

Callers

nothing calls this directly

Calls 3

MarkAsEditedFunction · 0.85
RefreshColumnsFunction · 0.85
CopyMethod · 0.45

Tested by

no test coverage detected