|
|
|
|
|
|
if (folderPath == string.Empty) |
|
|
|
return; |
|
|
|
var categories = LoadAssetsFromFolder(folderPath, categoricalParameter.sampleType); |
|
|
|
|
|
|
|
var probabilityIndex = probabilitiesProperty.arraySize; |
|
|
|
|
|
|
|
var optionsIndex = optionsProperty.arraySize; |
|
|
|
|
|
|
|
var optionProperty = optionsProperty.GetArrayElementAtIndex(i); |
|
|
|
var probabilityProperty = probabilitiesProperty.GetArrayElementAtIndex(i); |
|
|
|
var optionProperty = optionsProperty.GetArrayElementAtIndex(optionsIndex + i); |
|
|
|
var probabilityProperty = probabilitiesProperty.GetArrayElementAtIndex(probabilityIndex + i); |
|
|
|
optionProperty.objectReferenceValue = categories[i]; |
|
|
|
probabilityProperty.floatValue = uniformProbability; |
|
|
|
} |
|
|
|