When 3DArcade can’t find a model it will fall back on the list of defaultModelFilters from the models emulator configuration. If no match match is made it will look for the defaultModelFilters in the general configuration. If still no match is made it will pick a defaultModel.
For each DefaultModelFilter it will match DefaultModelFilter.model if all DefaultModelFilter.modelFilters are true. A ModelFilter can match any modelProperty with a modelPropertyValue using a ModelFilterOperator.
Code: Select all
public enum ModelFilterOperator
{
Equals, NotEquals, Contains, NotContains, Starts, NotStarts, Larger, Smaller
}
public class ModelFilter
{
public string modelProperty; // References any property from ModelProperties
public string modelPropertyValue;
public string ModelFilterOperator;
}
public class DefaultModelFilter
{
public List<ModelFilter> modelFilters;
public string model;
}
public class GeneralConfiguration
{
public List<DefaultModelFilter> defaultModelFilters;
}
public class EmulatorProperties
{
…
public List<DefaultModelFilter> defaultModelFilters;
…
}Example


