Missing IdLabelConfig fix
This commit is contained in:
Родитель
31e1650d57
Коммит
03a9225fca
|
@ -105,14 +105,15 @@ namespace SynthDet.Scenarios
|
|||
handle.WaitForCompletion();
|
||||
if (handle.Status != AsyncOperationStatus.Succeeded)
|
||||
throw new Exception("Prefabs failed to load from content catalogs");
|
||||
|
||||
// Sort prefabs and configure labeling
|
||||
SetupLabelConfigs();
|
||||
|
||||
var prefabsList = new List<GameObject>(handle.Result);
|
||||
prefabsList.Sort((prefab1, prefab2) => prefab1.name.CompareTo(prefab2.name));
|
||||
foreach (var prefab in prefabsList)
|
||||
ConfigureLabeling(prefab);
|
||||
|
||||
// Sort prefabs and configure labeling
|
||||
SetupLabelConfigs();
|
||||
|
||||
// Inject the loaded prefabs into the ForegroundObjectPlacementRandomizer
|
||||
var randomizer = GetRandomizer<ForegroundObjectPlacementRandomizer>();
|
||||
randomizer.prefabs = randomizer.prefabs.Concat(prefabsList).ToArray();
|
||||
|
|
Загрузка…
Ссылка в новой задаче